【发布时间】:2014-02-18 12:20:38
【问题描述】:
我创建了一个在悬停时显示 DIV 的 jQuery 下拉菜单,但我无法强制下拉 DIV 在页面上具有 100% 的宽度。
CSS:
ul.oe_menu div{
position:absolute;
top:103px;
left:1px;
background:#fff;
width:200; /* This sets the width of the dropdown DIV */
height:210px;
padding:30px;
display:none;
}
查看 JS Fiddle 以查看完整代码并展开预览部分以查看问题。
谢谢!
【问题讨论】:
-
width:200;是什么意思?
标签: javascript jquery css drop-down-menu