我很亲近,但需要一些帮助。有什么方法可以在句子之后但在<cite>
之前加上引号吗?
另外,如何将整个blockquote
放在页面中心?
http://jsfiddle.net/3PTtv/
<blockquote>
We came back to IBM because our previous provider was not as awesome.
<cite>Jon Jones, Vice President at Google</cite>
</blockquote>
blockquote {
font-family: Georgia, serif;
font-size: 18px;
font-style: italic;
width: 500px;
margin: 0.25em 0;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #616161;
}
blockquote:before {
display: block;
content: "\201C";
font-size: 80px;
position: absolute;
left: -20px;
top: -20px;
color: #7a7a7a;
}
blockquote cite {
color: #999999;
font-size: 14px;
display: block;
margin-top: 5px;
}
blockquote cite:before {
content: "\2014 \2009";
}
最佳答案
blockquote {
color: #616161;
font-family: Georgia,serif;
font-size: 18px;
font-style: italic;
line-height: 1.45;
margin: 0.25em 0;
padding: 0.25em 40px;
position: relative;
quotes: "\201C" "\201D";
width: 500px;
margin: 0 auto;
}
blockquote:before, blockquote:after {
color: #7A7A7A;
display: block;
font-size: 80px;
position: absolute;
}
blockquote:before {
content: open-quote;
left: 0;
top: -20px;
}
blockquote:after {
content: close-quote;
bottom: -40px;
right: 0;
}
http://jsfiddle.net/nchqL/21/
关于html - 我如何在该blockquote中添加一个结束语?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22051795/