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 を適用し、すべての解像度を同じままにすることは可能ですか? これを行う方法?
blockはい。ただし、インライン要素として生成されるため、疑似要素を aまたはfirstに指定する必要がありますinline-block。したがって、マージンを設定することはできません。
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; }