双引号的CSS内容不起作用

时间:2017-05-28 18:02:29

标签: css

我试过了'>\0147'但它似乎没有用,是不是正确的语法?

.blockquote p::before {
    content: '>\0147';
    font-family: serif;
    font-size: 3em;
    line-height: 0;
    display: block;
    margin: 0 0 20px 0;
}

1 个答案:

答案 0 :(得分:2)

试试这个:

CSS:

.blockquote p::before {
content: open-quote;
font-family: serif;
font-size: 3em;
line-height: 0;
display: inline;
margin: 0 0 20px 0;
}

HTML

<div class="blockquote">
<p>Lorem ipsum...</p>
</div>