css实现左右横线中间文字效果
2018-03-16 11:43
531 查看
样式
.title { display: table; width: 100%; line-height: 32px; background-color: #fff; white-space: nowrap; border-spacing: .2rem 0; } .title:before, .title:after { display: table-cell; content: ''; width: 50%; background: -webkit-linear-gradient(#eee, #eee) repeat-x left center; background: linear-gradient(#eee, #eee) repeat-x left center; background-size: 0.1rem 0.1rem; }
效果图
相关文章推荐
- CSS伪类before,after制作左右横线中间文字效果
- CSS伪类实现中间文字两边横线效果
- text-decoration <del> <s> 实现横线从文字中间穿过的CSS效果属性和html标签
- CSS实现让广告显示在文章中间,文字环绕效果
- css 实现 section(块) 的左右滑动,以及块内文字居中的效果
- CSS文字左右两横线效果
- CSS 实现触屏【图片文字】左右滚动效果
- html css实现左右两列固定宽度中间自适应效果
- 用css实现在横线中间插入文字
- 中间文字,两边横线(纯css实现的哦)
- CSS文字左右两横线效果
- 纯CSS实现背景半透明文字不透明效果兼容IE6
- 神奇!js+CSS+DIV实现文字颜色渐变效果
- CSS 布局实例系列(三)如何实现一个左右宽度固定,中间自适应的三列布局——也聊聊双飞翼
- Jquery结合div+css实现文字间断停顿向上滚动效果
- css图片上悬浮文字(丝带效果)实现
- CSS实例:用fieldset、legend实现文字写在边线上的效果
- CSS实例:用fieldset、legend实现文字写在边线上的效果
- css实现文字竖排效果
- TextView单行显示,文字左右滚动(走马灯效果)实现条件: