排版&代码&表格
排版
标题
/
到 /
均可使用,另外提供了.h1 到 .h6 类,为了给内联inline属性的文本赋予标题样式
<h1>h1. Bootstrap heading</h1>
<h2>h2. Bootstrap heading</h2>
<h3>h3. Bootstrap heading</h3>
<h4>h4. Bootstrap heading</h4>
<h5>h5. Bootstrap heading</h5>
<h6>h6. Bootstrap heading</h6>
/ 标签或赋予 .small 类的元素可以用来标记副标题
<h1>h1. Bootstrap heading <small>Secondary text</small></h1>
<h2>h2. Bootstrap heading <small>Secondary text</small></h2>
<h3>h3. Bootstrap heading <small>Secondary text</small></h3>
<h4>h4. Bootstrap heading <small>Secondary text</small></h4>
<h5>h5. Bootstrap heading <small>Secondary text</small></h5>
<h6>h6. Bootstrap heading <small>Secondary text</small></h6>
页面主体
全局font-size:14px
line-height:1.428
这些属性会赋予属性和所有段落属性
/
设置了等于1/2行高(即 10px)的底部外边距(margin)
<p>...</p>
中心内容
.lead类可以让段落突出显示
<p class="lead">...</p>
variables.less文件中两个less变量决定了排版尺寸@font-size-base 和 @line-height-base
@font-size-base决定了line-height基准,自定义可以改变默认样式
内联文本元素
<!--高亮显示-->
You can use the mark tag to <mark>highlight</mark> text.
<!--删除-->
<del>This line of text is meant to be treated as deleted text.</del>
<!--无用-->
<s>This line of text is meant to be treated as no longer accurate.</s>
<!--插入-->
<ins>This line of text is meant to be treated as an addition to the document.</ins>
<!--下划线-->
<u>This line of text will render as underlined</u>
<!--小号-->
<small>This line of text is meant to be treated as fine print.</small>
<!--着重-->
<strong>rendered as bold text</strong>
<!--斜体-->
<em>rendered as italicized text</em>
在 HTML5 中可以放心使用 和 标签。 用于高亮单词或短语,不带有任何着重的意味;而 标签主要用于发言、技术词汇等
对齐
<p class="text-left">Left aligned text.</p>
<p class="text-center">Center aligned text.</p>
<p class="text-right">Right aligned text.</p>
<p class="text-justify">Justified text.</p>
<p class="text-nowrap">No wrap text.</p>
改变大小写
<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize">Capitalized text.</p>
缩略语
<!--鼠标放在上面会出现提示-->
<abbr title="attribute">attr</abbr>
<!--缩略语添加.initialism类,可以让font-size稍微小些-->
<abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
地址
让联系信息以最接近日常使用的格式呈现,结尾的
可以保留需要的样式
<address>
  <strong>Twitter, Inc.</strong><br>
  1355 Market Street, Suite 900<br>
  San Francisco, CA 94103<br>
  <abbr title="Phone">P:</abbr> (123) 456-7890
</address>
<address>
  <strong>Full Name</strong><br>
  <a href="mailto:#">first.last@example.com</a>
</address>
引用
文档中引用其他来源的内容
放在/
中即可<blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> </blockquote>添加
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号