.test #ul li.active{ background:#.... }
.test #ul li a{ disaplay:inline-block; background:#....}.test #ul li a:active{ background:#.... }
.test li { color: #f5f5f5; float: none; width: 200px; background: #101010; margin-bottom: 3px; line-height: 60px; list-style-type: none;}.test a { color: #f5f5f5; padding-left: 60px;}.test li:hover { display: inline-block; color: #000000; float: none; width: 200px; background: #06b2e3; margin-bottom: 3px; line-height: 60px;}.test #ul li.active { display: inline-block; color: #000000; float: none; width: 200px; background: #f5f5f5; margin-bottom: 3px; line-height: 60px;}.test #ul li a { display: inline-block; color:#000000; float: none; width: 200px; background: #f5f5f5; margin-bottom: 3px; line-height: 60px;}.test #ul li a:active { background: #f5f5f5; float : none; width: 200px; margin-bottom: 3px; line-height: 60px;}
还是说想要在网页一开始就显示不同的active需要js? 具体要怎么写?求大神告知。 bootstrap的bootstrap.min.css检索script太多了。不太好找啊
background:#fff;才是白色背景。。