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.
こんにちは私は次のコードで入力フィールドの後にスパンを非表示にしようとしています:
<style> input~span:after { opacity: 0;} </style> ... <input type="email" /> <span>Test</span>
ただし、スパンはブラウザに表示されたままですが、firebugで要素を検査すると、スパンの不透明度が0であることがわかります。
私は何かが足りないのですか?
なぜ:afterですか?これは、疑似要素を作成するためのものです。
:after
<style> input~span{ opacity: 0;} </style>