当前位置: 代码迷 >> Web前端 >> 文本排字
  详细解决方案

文本排字

热度:378   发布时间:2012-10-16 09:57:37.0
文本排版

1.段落缩进

p{

? ?font:12px verdana,arial,sans-serif;

? ?text-indent:15px;

}

?

2.首字下沉

?

?

<h1>Content is king</h1>
  <p class="dropcap">This is a paragraph. Nothing particularly special about it,but the visitor is going to read it anyway,so it may as well say something useful.</p>

p.dropcap:first-letter{
    float:left;
    width:40px;
    font:60px "Lucida Grande",Arial,sans-serif;
    line-height:50px;
}

?

?

3.字体样式

定义删除线文本:<s>text</s>;或者<strike>text</strike>

?

?

?

?

  相关解决方案