使用CSS向段落添加双引号 [英] Adding double quotes to a paragraph with CSS
本文介绍了使用CSS向段落添加双引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有这一段:
< p class =myclass>这是我的段落< p>
在此段落中添加双引号的CSS代码是什么? (所以它会呈现这是我的段落)
.myclass {}
解决方案使用 伪元素 :
p.myclass:before,p .myclass:after {
content:'';
}
strong>小提琴: http://jsfiddle.net/2bE8j/1/
Lets say I have this paragraph:
<p class="myclass">This is my paragraph</p>
What is the CSS code to add double quotes to this paragraph? (So it will render "This is my paragraph")
.myclass {}
解决方案Use pseudo-elements:
p.myclass:before, p.myclass:after { content: '"'; }
Fiddle: http://jsfiddle.net/2bE8j/1/
这篇关于使用CSS向段落添加双引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文