Code:
<a href="">1</a><span></span><a href="">2</a>
span + a {...}
question: you can choose the next one with the plus sign, so can you choose the one in front of you?
Code:
<a href="">1</a><span></span><a href="">2</a>
span + a {...}
question: you can choose the next one with the plus sign, so can you choose the one in front of you?
first of all, to be clear, there is no pre-selector. The reason has been given upstairs.
however, you can think in a different way
if you change the existing structure and then use direction:rtl
to change the display order, you can use +
to achieve the effect of the front selector
<style>
.demo{direction:rtl}
.demo span + a { ... }
</style>
<div class="demo">
<span>2</span><a href="">2</a><span>1</span><a href="">1</a>
</div>
you can take a look at my article http://118.24.110.50/blog/art.
.there are relevant implementation ideas
currently there is no such selector, otherwise the front will have to re-render after rendering to the back and then modify the style in front of it.
the current CSS may not be able to do so. If you want to implement such logic, you can either use js to implement it, or use another way of thinking to avoid the problem.
the front selector is not available.
guess the reasons as follows:
Previous: Operation of two arrays
< H1 > problem description < H1 > while writing transition animation, I inadvertently found that sometimes the page would jam, and the Chrome memory of the viewing task manager suddenly soared. After various exclusions, I found that transform:skew (9...
I don t know what this technology is called I can t find the result I want at all. is that when the user may drag the clip into a frame or manually send it on this end, will allow the user to cut the range first, and maybe 160x160 when the user is ...
<div class="basic_layout"> <? while($row = mysqli_fetch_array($data)){?> <div class="product_layout" onclick="location.href=URLLLL ;"> <img class="product_icon opacity-black&quo...
controls the style of text: .text { color: -sharp5E6574; font-size: 14px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; word-break: break-all; } question: the length of the text on line 5 is protruding. b...
Radial gradient radial-gradient setting the gradient radius seems to be just these four values: closest-side,closest-corner,farthest-side,farthest-corner. Can you directly use px to set the radius distance? ...
<div class="red"> <div class="black"> <div class="blue">< div> < div> < div> Red is the parent container, blue is the child element in black, and the position remains t...
doesn t have to be a button, it s a square div . ...
2d rotation seems to be just a rotating element, 3D looks like a rotating coordinate system. ...
1, there is a need to drag the icon, put it in one place, and generate a shortcut. I used the drag attribute in CSS to drag 2. The problem is: drag with the background color before dragging. I don t want this background color. here s what happens w...