css实现横向下拉菜单_html/css
来源:动视网
责编:小采
时间:2020-11-27 15:46:44
css实现横向下拉菜单_html/css
css实现横向下拉菜单_html/css_WEB-ITnose:css Untitled Document body{ color: black; } .father{ height: 31px; background-color: grey; position: relative; } .father li{ float: left; margin-right: 5px; } .son{ display: none; background-color: red; height: 30px; top: 31px; left: 0px;
导读css实现横向下拉菜单_html/css_WEB-ITnose:css Untitled Document body{ color: black; } .father{ height: 31px; background-color: grey; position: relative; } .father li{ float: left; margin-right: 5px; } .son{ display: none; background-color: red; height: 30px; top: 31px; left: 0px;

css
Untitled Document
first father son1 son1 son1 这是我的代码 但是在chrome和ie下不一样 哪位大牛帮忙解决一下 谢谢
回复讨论(解决方案)
初步帮楼主整理了下,IE7+和谷歌差不多,一般直接CSS样式控制的横向下拉菜单不是很好,最好是通过JS来控制,希望对楼主有所帮助。
横向菜单
first father son1 son1 son1
css实现横向下拉菜单_html/css
css实现横向下拉菜单_html/css_WEB-ITnose:css Untitled Document body{ color: black; } .father{ height: 31px; background-color: grey; position: relative; } .father li{ float: left; margin-right: 5px; } .son{ display: none; background-color: red; height: 30px; top: 31px; left: 0px;