84669 人学习
152542 人学习
20005 人学习
5487 人学习
7821 人学习
359900 人学习
3350 人学习
180660 人学习
48569 人学习
18603 人学习
40936 人学习
1549 人学习
1183 人学习
32909 人学习
多张图片 1.鼠标移入图片,出现下拉按钮,mouseover show 2.点击下拉按钮,出现下拉框,click slidedown 3.移开下拉框区域,下拉框收回,mouseout slideup 4.移开图片,下拉按钮消失 mouseout hide
用css如何实现?或者简短的jquery代码?js代码呢?
ringa_lee
<style> .box { width: 100px; height: 100px; position: relative; } .select { width: 100px; height: 20px; position: absolute; top: 0; left: 0; display: none; } .box:hover .select{ display: block; } .select ul { position: absolute; width: 100px; height: 40px; display: none; } .select li { width: 100px; height: 20px; float: left; } .select:hover ul{ display: block; } </style>
就是点击效果实现不了,没测试
就是点击效果实现不了,没测试