时间:2021-07-01 10:21:17 帮助过:17人阅读
ul.cssMenu, ul.cssMenu ul{ list-style:none; margin:0; padding:-10; position: relative;}ul.cssMenu ul { display:none; /*initially menu item is hidden*/ position: absolute; /*absolute positioning is important for menu to float*/ }ul.cssMenu li:hover > ul { display:block; background-color:red;}
感谢分享经验
ul.cssMenu li:hover > ul { display:block; background-color:red; top:-150px; left:50px;}
好像是定位有问题