显示和不显示

Original 2019-01-13 21:26:08 255
abstract:<!DOCTYPE html> <html> <head><title> <style type="text/css"> .box{width:100px;height:40px;line-height:40px;text-align:center;background-color:#ccc;pos
<!DOCTYPE html>
<html>
<head><title>
<style type="text/css">
.box{width:100px;height:40px;line-height:40px;text-align:center;background-color:#ccc;position:relative;}
ul{width:100px;height:200px;line-height:200px;text-align:center;background-color:#ccc;position:relative;display:none;}
.box:hover ul{display:block;}
li{height:100px;line-height:100px;text-align:center;}
</style>
</title></head>
<body>
<div class="box">淘宝菜单
<ul>
<li>衣服类</li>
<li>鞋帽类</li>
</ul>
</div>
</body>
</html>

Correcting teacher:灭绝师太Correction time:2019-01-14 10:02:25
Teacher's summary:完成的不错,但是布局要全面奥!看你的布局带有嵌套有点问题!要有个好的布局思路

Release Notes

Popular Entries