CSS3模拟动画下拉菜单效果
来源:懂视网
责编:小OO
时间:2020-11-27 18:51:44
CSS3模拟动画下拉菜单效果
下拉菜单模拟效果图。CSS3。;<;style>;#box{width:200px;height:50px;overflow:hidden;cursor: pointer;transition: all 0.35s;} #box:hover{height:250px;} #box ul{list-style:none;margin:0;padding:0;} #box ul li{width:198px;height:48px;line-height: 50px;text-align: center;border:1px red solid;background:#000000;color:white;} <;/style>。HTML。
导读下拉菜单模拟效果图。CSS3。;<;style>;#box{width:200px;height:50px;overflow:hidden;cursor: pointer;transition: all 0.35s;} #box:hover{height:250px;} #box ul{list-style:none;margin:0;padding:0;} #box ul li{width:198px;height:48px;line-height: 50px;text-align: center;border:1px red solid;background:#000000;color:white;} <;/style>。HTML。
使用css3制作的下拉菜单外观非常漂亮,在各大网站都适用,今天小编通过本文给大家分享基于css3制作的动画下拉菜单效果,需要的的朋友参考下吧
下拉菜单模拟效果图:

CSS3:
<style>
#box{width:200px; height:50px; overflow:hidden; cursor: pointer; transition: all 0.35s;}
#box:hover{height:250px;}
#box ul{list-style:none; margin:0; padding:0;}
#box ul li{width:198px; height:48px; line-height: 50px; text-align: center; border:1px red solid; background:#000000; color:white;}
</style>
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p id="box">
<ul>
<li>This's 1</li>
<li>This's 2</li>
<li>This's 3</li>
<li>This's 4</li>
<li>This's 5</li>
</ul>
</p>
</body>
</html>
CSS3模拟动画下拉菜单效果
下拉菜单模拟效果图。CSS3。;<;style>;#box{width:200px;height:50px;overflow:hidden;cursor: pointer;transition: all 0.35s;} #box:hover{height:250px;} #box ul{list-style:none;margin:0;padding:0;} #box ul li{width:198px;height:48px;line-height: 50px;text-align: center;border:1px red solid;background:#000000;color:white;} <;/style>。HTML。