Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
input[type="radio"][class="selectorPrev"]:hover+ label:before { content:'Previous image'; z-index:999; position:relative; }
是否可以仅在内容属性上应用 margin-left:10px 并保持所有资源相同?这该怎么做?
是的,但是您需要将伪元素指定为 ablock或inline-blockfirst,因为它是作为内联元素生成的,因此不能有边距。
block
inline-block
input[type="radio"][class="selectorPrev"]:hover + label:before { content:'Previous image'; display:inline-block; position:relative; z-index:999; margin-left:10px; }