内联内容CSS属性 [英] Inline Content CSS Property
本文介绍了内联内容CSS属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过内联CSS使用CSS的"content"属性,如下所示:
Is it possible to use CSS's 'content' property using inline CSS something like this:
<p class="myclass" style=".myclass:after:content = 'my content here'">Hello There !!</p>
推荐答案
否.通过'style'属性的内联样式只能应用于context元素,而不能使用任何类型的选择器.
No. Inline styles via the 'style' attribute can only be applied to the context element, without any selectors of any sort.
这篇关于内联内容CSS属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文