标题有两边线的用法
来源:互联网 发布:辽宁北方频道网络直播 编辑:程序博客网 时间:2024/06/05 05:40
.aside-block h2{
font-size: 30px;
color: #188eee;
display: inline-block;
padding: 10px;
position: relative;
background-color: #f5f5f5;
}
.aside-block{
text-align: center;
}
.tt{
position: relative;
}
.tt::before {
content: "";
width: 100%;
height: 1px;
background-color: #dbdbdb;
position: absolute;
top: 50%;
left: 0;
font-size: 30px;
color: #188eee;
display: inline-block;
padding: 10px;
position: relative;
background-color: #f5f5f5;
}
.aside-block{
text-align: center;
}
.tt{
position: relative;
}
.tt::before {
content: "";
width: 100%;
height: 1px;
background-color: #dbdbdb;
position: absolute;
top: 50%;
left: 0;
}
注意position,relative层级在absolute上面。
阅读全文
0 0
- 标题有两边线的用法
- 闪烁的表格边线
- <TABLE>的边线
- 边线的长短解决方法
- 圆形图片(最多两条边线)以及圆角图片的实现
- java中super的两种用法 [转], 有改动
- Skybox边线消除的解决办法
- 细边线的表格实现
- 开发有标题的ListView
- 查询面的边线上的线
- 文章标题 map的用法
- 用于去掉button外部的边线
- table的bottom无端多条边线
- Android中Edittext的自定义文本框边线
- 显示、隐藏导航的底部边线
- 清除cell左边线的空白
- 设置没有标题的两种方式
- 我的页面的标题上面有“?”
- Spring bean初始化和销毁/bean作用域
- shader总结六
- OpenGL-纹理
- 读后感 《人工智能狂潮-机器人会超越人类吗?》
- Diary III
- 标题有两边线的用法
- QT Qimage转Iplimage
- 关于maven配置
- 基于Hexo+Github构建个人博客(一)
- JavaScript 字符串,String对象
- [leetcode] 646. Maximum Length of Pair Chain
- 关于cesium的3dTiles数据的理解
- Period HDU
- 异常处理