[英]Big Quotation marks styled in html css
How would I style a quote with those huge quotation marks? 如何用这些巨大的引号来设定引号?
I have tried most of the examples shown online. 我尝试过在线显示的大部分示例。 Using Block quote with the :before and :after css styles.
使用带有:before和:after css样式的块引用。 The issue I'm having is avoiding the use of a image in div's wrapped around text, because of responsiveness.
我遇到的问题是避免在div中使用图像,因为响应性。 I'm also using the Twitter Bootstrap framework.
我也在使用Twitter Bootstrap框架。
The Quote in html: html中的引用:
<div class="container">
<blockquote><h3>Whenever you see a successful business, someone once made a courageous decision. ~Peter F. Drucker</h3></blockquote>
</div>
And the css: 和css:
blockquote {
border:none;
font-family:Georgia, "Times New Roman", Times, serif;
margin-bottom:-30px;
}
blockquote h3 {
font-size:21px;
}
blockquote h3:before {
content: open-quote;
font-weight: bold;
font-size:100px;
color:#889c0b;
}
blockquote h3:after {
content: close-quote;
font-weight: bold;
font-size:100px;
color:#889c0b;
}
The problem is getting to look like this example.Although the responsiveness does sort of work. 问题就是看起来像这个例子。虽然响应性确实有点工作。 The Quotation marks are not positioned diagonally from one another
引号不是彼此对角放置的
Although it's not clear after reading your question I guess you want to change the shape of quotation marks. 虽然在阅读你的问题后我不清楚,但我想你想改变引号的形状。
Pick a proper unicode value and add a quotes
property. 选择适当的unicode值并添加
quotes
属性。 Eg 例如
blockquote { border:none; font-family:Georgia, "Times New Roman", Times, serif; margin-bottom:-30px; quotes: "\\201C""\\201D""\\2018""\\2019"; } blockquote h3 { font-size:21px; } blockquote h3:before { content: open-quote; font-weight: bold; font-size:100px; color:#889c0b; } blockquote h3:after { content: close-quote; font-weight: bold; font-size:100px; color:#889c0b; }
<div class="container"> <blockquote><h3>Whenever you see a successful business, someone once made a courageous decision. ~Peter F. Drucker</h3></blockquote> </div>
You may also want to change the font-family
so the shape of quotation marks is more suitable to your desires. 您可能还想更改
font-family
因此引号的形状更适合您的需求。
The Quotation marks are not positioned diagonally from one another
引号不是彼此对角放置的
So just position them: 所以只需定位它们:
blockquote{
position: relative;
}
blockquote h3:before {
position: absolute;
top: 0;
left: 0;
}
blockquote h3:after{
bottom: 0;
right: 0;
}
Or like in this demo: http://jsfiddle.net/pz6kx0bw/ 或者像这个演示: http : //jsfiddle.net/pz6kx0bw/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.