`
jsntghf
  • 浏览: 2473245 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

引用块(Blockquote)CSS效果

CSS 
阅读更多
<style type="text/css">
  blockquote.style1 {
    font: 14px/20px italic Times, serif;
    padding: 8px;
    background-color: #faebbc;
    border-top: 1px solid #e1cc89;
    border-bottom: 1px solid #e1cc89;
    margin: 5px;
    background-image: url(images/openquote1.gif);
    background-position: top left;
    background-repeat: no-repeat;
    text-indent: 23px;
  }
  blockquote.style1 span {
    display: block;
    background-image: url(images/closequote1.gif);
    background-repeat: no-repeat;
    background-position: bottom right;
  }

  blockquote.style2 {
    font: 14px/22px normal helvetica, sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
    padding-left: 15px;
    border-left: 3px solid #ccc;
  } 

  blockquote.style3 {
    font: 18px/30px normal Tahoma, sans-serif;
    padding-top: 22px;
    margin: 5px;
    background-image: url(images/openquote3.gif);
    background-position: top left;
    background-repeat: no-repeat;
    text-indent: 65px;
  }
  blockquote.style3 span {
    display: block;
    background-image: url(images/closequote3.gif);
    background-repeat: no-repeat;
    background-position: bottom right;
  } 

  blockquote.style4 {
    font: 14px/20px italic Times, serif;
    padding-left: 70px;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 10px;
    background-color: #dadada;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 5px;
    background-image: url(images/openquote4.gif);
    background-position: middle left;
    background-repeat: no-repeat;
    text-indent: 23px;
  } 

  blockquote.style5 {
    font: 12px/18px normal "Courier New", sans-serif;
    padding-left: 70px;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: #000;
    color: white;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 5px;
    background-image: url(images/openquote5.gif);
    background-position: middle left;
    background-repeat: no-repeat;
    text-indent: 23px;
  }
  blockquote.style5 span {
    padding-right: 50px;
    display: block;
    background-image: url(images/closequote5.gif);
    background-repeat: no-repeat;
    background-position: bottom right;
  } 
</style>

<blockquote class="style1">   
  <span>Ut nonummy habent soluta claritas veniam. Typi nunc soluta hendrerit mutationem sollemnes. Quis lius dolore et insitam vel. Aliquip consequat futurum claram ut mazim. Facilisi accumsan dolore ii imperdiet consequat.</span>   
</blockquote>

<blockquote class="style2">   
  <span>Ut nonummy habent soluta claritas veniam. Typi nunc soluta hendrerit mutationem sollemnes. Quis lius dolore et insitam vel. Aliquip consequat futurum claram ut mazim. Facilisi accumsan dolore ii imperdiet consequat.</span>   
</blockquote>

<blockquote class="style3">   
  <span>Ut nonummy habent soluta claritas veniam. Typi nunc soluta hendrerit mutationem sollemnes. Quis lius dolore et insitam vel. Aliquip consequat futurum claram ut mazim. Facilisi accumsan dolore ii imperdiet consequat.</span>     
</blockquote>

<blockquote class="style4">   
  <span>Ut nonummy habent soluta claritas veniam. Typi nunc soluta hendrerit mutationem sollemnes. Quis lius dolore et insitam vel. Aliquip consequat futurum claram ut mazim. Facilisi accumsan dolore ii imperdiet consequat.</span>   
</blockquote>

<blockquote class="style5">   
  <span>Ut nonummy habent soluta claritas veniam. Typi nunc soluta hendrerit mutationem sollemnes. Quis lius dolore et insitam vel. Aliquip consequat futurum claram ut mazim. Facilisi accumsan dolore ii imperdiet consequat.</span>   
</blockquote>

 

 效果图如下:

 

分享到:
评论

相关推荐

    kindeditor插入引用<blockquote>标签插件

    kindeditor编辑器默认不带插入引用标签功能,本插件可以实现在kindeditor里插入引用标签&lt;blockquote&gt;的功能。 具体使用方法参考: 给Kindeditor添加插入引用blockquote标签功能,完整代码分享-前端开发-天下网吧 ...

    HTML blockquote 标签使用与美化

    &lt;blockquote&gt; 标签定义块引用。 &lt;blockquote&gt; 与 &lt;/blockquote&gt; 之间的所有文本都会从常规文本中分离出来,经常会在左、右两边进行缩进(增加外边距),而且有时会使用斜体。也就是说,块引用拥有它们自己的空间。 ...

    前端css+html+布局笔记

    声明块中实际上就是一个一个CSS声明 声明 每一个CSS声明都是一个样式,实际上就是一个名值对的结构 名和值之间使用:链接 :左边是样式的名字 :右边是样式的值 每一个声明以;结尾 例子 ...

    CSS里元素初始化文件html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,

    对css里的元素如:html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, ...

    HTML5和CSS3价格表翻转切换动画特效.zip

    片段代码: &lt;style&gt; ...h1, h2, h3, h4, h5, h6, p, blockquote, pre, ... 这是一款漂亮的项目价格表360度翻转代码,HTML5 CSS3价格表翻转切换动画特效,也可以改成选项卡切换、登录注册界面切换效果。

    CSS框架分享 整理过的elements新版本

    Elements是一款纯净的CSS框架,可以帮助设计师快速高效率的书写css文档。...例如body,ul,ol,dl,td,th,caption,pre,p,blockquote,input,textarea等  External Links 对于各种文档形式的链接的预设。

    kirby-v2-blockquote-tag:带有 BEM 类的 Kirby 2 的 HTML5 块引用标记

    class :提供给块引用并用于命名子元素的类。 如果没有给出类,它将是'blockquote'。 语言:语言代码,如“en”或“nl”。 归属:供参考个人或网站。 link : 提供给归因的 URL。 您可以在文本中使用此 KirbyText ...

    css 清除浏览器默认样式

    background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-...

    markdown.css:优雅的样式表,用于呈现Markdown内容

    Markdown.css仅包含标题,段落,文本元素,列表,图像,blockquote,表格和代码CSS样式。 Markdown.css有2种入门方法。 您可以手动安装或使用NPM。 手动安装 下载已编译并缩小的。 markdown.css位于/dist 。 使用...

    html5 css3 实现西洋镜连续动画特效.zip

    link rel="stylesheet" type="text/css" href="css/default.css?3.1.64"&gt; [removed][removed] &lt;link rel="stylesheet" type="text/css" href="css/styles.css?3.1.64"&gt; &lt;/head&gt; &lt;body&gt;...

    高效整洁CSS代码原则

    CSS学起来并不难,但在大型项目中,就变得难以管理,特别是不同的人在CSS书写风格上稍有不同,团队上就更加难以沟通,为此总结了一些如何实现高效整洁的CSS代码原则: 1. 使用Reset但并非全局Reset  不同浏览器...

    blockquote-command:插入 BLOCKQUOTE 节点的命令实现

    块引用命令插入 BLOCKQUOTE 节点的命令实现安装$ npm install blockquote-command

    blockquote标记应用注意

    问题是&lt;blockquote&gt;引用的文字必须使用块级元素将他包含吗? 首先是来自W3C的解释 9.2.2 Quotations: The BLOCKQUOTE and Q elements&lt;!ELEMENT BLOCKQUOTE – – (%block;|SCRIPT) — long quotation –&gt;&lt;!...

    CSS中基代码base.css一览

    复制代码代码如下: /***** css set*****/ body, div, dl, dt, dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;} table{border-collapse:collapse;border-...

    CSS样式重置代码

    复制代码代码如下:/* ...&lt;p&gt;html, body, div, span, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,abbr, address, cite, code,del, dfn, em, img, ins, kbd, q, samp,s

    common.css文件 网页设计常用的基本css控制

    }//body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td{ margin:0;padding:0;}table /* 设置table 的样式*/{ border-...

    掌握常用的用于网页中引用内容的HTML标记

    长的引使用blockquote,短的引号使用q,参考文献引用使用cite。在实践中,通常只用到blockquote和q。 根据的HTML规范,有三个元素,用于引用内容,即&lt;blockquote&gt; &lt;q&gt; 。现实中,对这些标签的使用还是比较少,因此,...

Global site tag (gtag.js) - Google Analytics