Ai
1 Star 0 Fork 0

唐能发/Example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
line.html 660 Bytes
一键复制 编辑 原始数据 按行查看 历史
唐能发 提交于 2016-10-12 17:41 +08:00 . 新增响应式布局
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>中间线</title>
<style type="text/css">
html,body {
width:100%;
height:100%;
margin:0px;
padding:0px;
}
.Line {
position: relative;
height: auto;
text-align: center;
}
.Line .centerLine {
position: absolute;
background: #d1d2d4;
height:1px;
width:100%;
top:50%;
}
.Line .text {
position: relative;
display: inline-block;
background: white;
padding:0px 15px;
z-index: 1000;
}
</style>
</head>
<body>
<div class="Line">
<div class="centerLine"></div>
<span class="text">中间文字中间文字</span>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/TNF/Example.git
git@gitee.com:TNF/Example.git
TNF
Example
Example
master

搜索帮助