<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>各种类型的线条</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.container{
height: 100px;
font-size: 24px;
font-weight: bold;
background: #f3f3f3;
margin-bottom: 30px;
text-align: center;
line-height: 100px;
}
.line_one h3{
vertical-align: middle;
text-align: center;
line-height: 100px;
}
.line_one h3 span{
vertical-align: middle;
display: inline-block;
padding: 0 50px;
}
.line_one h3:before,.line_one h3:after{
display: inline-block;
vertical-align: middle;
content: "";
width: 100px;
height: 3px;
background: #000000; }
.line_two span{
letter-spacing: -1px; //通过设置字符间距是线之间的空白消失
}
.line_two strong{
padding: 0 50px;
}
</style>
</head>
<body>
<div class="container line_one">
<h3><span>世界那么大</span></h3>
</div>
<div class="container line_two">
<h3>
<span>—————————</span>
<strong>世界那么大</strong>
<span>—————————</span>
</h3>
</div>
<div class="container line_four"> </div>
<div class="container line_five"> </div>
<div class="container line_six"> </div>
<div class="container line_seven"> </div>
</body>
</html>

  

最新文章

  1. 【php学习】PHP 入门经典第一章笔记
  2. C# 与 Java 中的枚举
  3. php+jquery+ajax实现用户名验证
  4. numpy使用
  5. RVM 实用指南
  6. bzoj 1798 [Ahoi2009]Seq 维护序列seq
  7. 分享一个自己用的Objective-C的Http接连类
  8. 推荐15个月 Node.js 开发工具
  9. [LeetCode107]Binary Tree Level Order Traversal II 二叉树层次遍历
  10. geoserver发布地图服务WMTS
  11. java内存结构
  12. class的真相
  13. Linux 之父自传《just for fun》读书笔记
  14. Dapper简易教程(翻译自Github上StackExchange/Dapper)
  15. 给tomcat 配置https
  16. JMS学习(七)-ActiveMQ消息的持久存储方式之KahaDB存储
  17. CAS 策略已被 .NET Framework 弃用
  18. 每日英语:How To Survive The Windows XPiration Date
  19. [development][libhtp] libhtp 启用debug模式
  20. 【JVM】内存分析&lt;一&gt;工具的使用

热门文章

  1. 关于模拟admin实现stark组件的知识点
  2. Oracle调优之buffer pool相关
  3. PHP中使用mkdir创建多级目录的方法
  4. bash中常用的快捷键
  5. 个人关于python装饰器的白痴理解
  6. 【CentOS 6.5】 安装VNCServer及配置,注销处理
  7. Docker命令大全
  8. 03-23 MVC框架(以查询、删除为例)
  9. Django models拆分
  10. 如何安装和使用Karma-Jasmine