由中间向两边渐变的分割线
来源:互联网 发布:用ps淘宝详情页怎么做 编辑:程序博客网 时间:2024/03/29 00:37
原理是使用css3的渐变背景,再将高设为分割线的高度
<!DOCTYPE html><html><head><style>.title{ position:relative; text-align:center;}.title:before, .title:after { content: ""; width: 40%; height: 1px; position: absolute; top: 50%; }.title:before { background: -webkit-linear-gradient(right, #666 , #eee); background: -o-linear-gradient(left, #666 , #eee); background: -moz-linear-gradient(left,#666 , #eee); background: linear-gradient(to left, #666 , #eee); left: 2px;}.title:after { background: -webkit-linear-gradient(left, #666 , #eee); background: -o-linear-gradient(right, #666 , #eee); background: -moz-linear-gradient(right,#666 , #eee); background: linear-gradient(to right, #666 , #eee); right: 2px;}</style></head><body><p class="title">这是一个标题</p></body></html>
阅读全文
0 0
- 由中间向两边渐变的分割线
- UISegmentedControl 去掉中间的分割线
- 设置tableview的cell的两边满格 分割线
- 利用css实现鼠标经过元素,下划线由中间向两边展开
- listview分割线设置两边不贴边
- Gridview 中间分割线(一)
- 去除UIDatePicker和UIPickerView中间Row上面的分割线
- UISegmentedControl 去掉圆角 去掉中间的分割线
- 演示字符从两边向中间汇聚
- 设置numberpicker、DatePicker中间分割线颜色
- 使用css3制作渐变分割线
- 从两边向中间依次靠拢打印一个字符串
- 将数组中最大的元素放到数组最中间的位置,然后依次由大到小轮换放到左右两边
- ListView去掉中间的分割线和设置Item之间的间距
- 两边细中间粗的线条
- iOS清除UIDatePicker和UIPickerView中间Row上面的分割线
- 去掉Launcher两边的黑色渐变区域
- 长的分割线
- 俄部分联邦主体经贸投资推介会在合肥举行
- spark2.1 和 python3.6的问题
- 欢迎使用CSDN-markdown编辑器
- 异常Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
- AutoCompeleteTestView--动态自动匹配输入的内容
- 由中间向两边渐变的分割线
- 应用间的数据接收和发送
- Andriod通过经纬度解析实际地址
- MySQL监控利器-Innotop
- Git中三种文件状态及其转换
- 上传工具类
- Scala学习笔记系列<1>
- Instant Run使用要注意的坑
- 39. Combination Sum