项目中遇到,调试了好久才看到了想要的结果, 伤心啦, 开心啦! 做个笔记,以待后用!
xx.css :
#moreButton {float:right; margin-left:5px;}
#moreButton #moreButtonText {width:40px; height:25px;}#moreButton ul {float:right; visibility:hidden; position:absolute; top:25px; right:21px; list-style:none;}
#moreButton ul li {margin:0; padding:0;}
#moreButton:hover ul, #moreButton ul li:hover ul {visibility:visible; }
#moreButton input:hover {border-color:#000000; cursor:pointer;}
效果: