css 简单而美观的Blockquote造型

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 简单而美观的Blockquote造型相关的知识,希望对你有一定的参考价值。

/* 
The blockquote displays in standards-compliant browsers with the "big quotes before"
effect, and in IE with a thick left border and a light grey background.
Unlike other blockquote techniques, this style does not require a nested block-level 
element (like p). As such, it turns a paragraph into an inline-styled element to keep 
the content from dropping below the quote. 
*/

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
blockquote p {
  display: inline;
}

以上是关于css 简单而美观的Blockquote造型的主要内容,如果未能解决你的问题,请参考以下文章

css 简单而漂亮的Blockquote造型

css CSS:Blockquote模板

css Blockquote Marks

css Blockquote测试

css 造型滚动条|标签的CSS

css 重力形成css造型