<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>滑动门</title>
<style>
* {
padding: 0;
margin: 0;
}
.slide {
width: 234px;
height: 420px;
background-color: rgba(105, 101, 101, 0.6);
padding: 20px 0;
margin: 100px;
position: relative;
}
.slide ul {
list-style: none;
}
.slide ul li {
width: 100%;
height: 42px;
line-height: 42px;
text-align: left;
padding-left: 30px;
box-sizing: border-box;
}
.slide ul li a {
display: inline-block;
text-decoration: none;
color: #fff;
}
.slide ul li:hover {
background-color: #ff6700;
}
.slide-list {
width: 992px;
height: 460px;
background-color: #fff;
position: absolute;
top: 0;
left: 234px;
border: 1px solid #e0e0e0;
border-left: none;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
display: none;
}
.slide ul li:hover>.slide-list {
display: block;
}
</style>
</head>
<body>
<div class="slide">
<ul>
<li>
<a href="#">手机 </a>
<div class="slide-list">手机1111</div>
</li>
<li>
<a href="#">电视 </a>
<div class="slide-list">电视1111</div>
</li>
</ul>
</div>
</body>
</html>
翻译
搜索
复制
<iframe></iframe> 标签:none,color,li,ul,slide,HTML,滑动门,height,CSS From: https://www.cnblogs.com/jw-t/p/18240094