Line 28: | Line 28: | ||
#sideToggle:checked + .sidebar{display: block} | #sideToggle:checked + .sidebar{display: block} | ||
#sideToggle:checked ~ .content{left: 178px} | #sideToggle:checked ~ .content{left: 178px} | ||
+ | |||
+ | .nav { | ||
+ | list-style: none; | ||
+ | position: absolute; | ||
+ | left: 0;right: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | .nav a:link{color: #000} | ||
+ | .nav a:visited {color: #000} | ||
+ | .nav a:hover { | ||
+ | color: #aaaaaa; | ||
+ | } | ||
+ | .nav li { | ||
+ | border: solid 1px; | ||
+ | padding: 5px 0 5px 0; | ||
+ | border-bottom-width: 0px; | ||
+ | } | ||
+ | /*选择最后一个元素*/ | ||
+ | .nav li:last-child {border-bottom-width: 1px} | ||
+ | .nav a { | ||
+ | text-decoration: none; | ||
+ | } | ||
Revision as of 14:19, 4 October 2018