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.
CSS で生成されたコンテンツはテキストのみですか? たとえば、以下のコードはスパンをテキストとして表示し、新しいスパンを作成しません。
.addbefore:before { content: "<span>dfsd</span>"; }
CSSで生成されたコンテンツはテキスト専用ですか?
はい。
疑似要素は、それ自体の中に新しいDOM要素を作成しませんが、セレクターが一致する要素内の新しいDOM要素であるかのように扱われます。