1 Star 0 Fork 0

wLinj / diwudadao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
线条.html 3.17 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
wLinj 提交于 2019-02-25 17:22 . 第一次提交
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img, input, figure, figcaption {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-size: 16px;
font-weight: normal;
}
ul, ol, li {
list-style: none;
}
b, strong {
font-weight: normal;
}
em, i {
font-style: normal;
}
a, u {
text-decoration: none;
}
img {
border: 0;
display: block;
}
input {
outline: none;
}
* {
box-sizing: border-box;
}
.box {
width: 214px;
height: 108px;
margin: 30px auto;
position: relative;
}
.inner {
width: 214px;
height: 108px;
border: rgba(0, 0, 0, .2) solid 1px;
}
.hidde {
opacity: 0;
width: 214px;
height: 108px;
text-align: center;
line-height: 108px;
font-size: 24px;
position: absolute;
left: 0;
top: 0;
transition: 0.7s;
}
.hidde:after {
position: absolute;
top: -1px;
content: '';
display: block;
width: 0;
height: 0;
border: #c69c6d solid 1px;
transition: width 0.4s linear;
}
.hidde:before {
position: absolute;
bottom: -1px;
content: '';
display: block;
width: 0;
height: 0;
border: #c69c6d solid 1px;
transition: width 0.4s linear;
}
.box:hover .hidde {
opacity: 1;
background-color: #fff;
}
.box:hover .hidde:after, .box:hover .hidde:before {
width: 210px;
}
.lar {
width: 214px;
height: 108px;
position: absolute;
left: 0;
top: 0;
}
.lar:after {
content: '';
display: block;
width: 0;
height: 0;
border: #c69c6d solid 1px;
transition: height 0.4s linear;
position: absolute;
left: 0px;
}
.lar:before {
content: '';
display: block;
width: 0;
height: 0;
border: #c69c6d solid 1px;
transition: height 0.4s linear;
position: absolute;
right: 0px;
}
.box:hover .lar:after, .box:hover .lar:before {
height: 107px;
}
</style>
<link rel="stylesheet" href="src/css/style.css">
</head>
<body>
<div class="box">
<div class="inner">
<img src="src/images/bj-1.png" height="108" width="214"/>
</div>
<div class="hidde">
宝玑
<div class="lar">
</div>
</div>
</div>
</body>
</html>
1
https://gitee.com/wljszsd/diwudadao.git
git@gitee.com:wljszsd/diwudadao.git
wljszsd
diwudadao
diwudadao
master

搜索帮助

14c37bed 8189591 565d56ea 8189591