Difference between revisions of "Team:HFUT-China/subnavcss"
(Created page with ".sub-nav{ position: absolute; top:44px; height:44px; width: 100%; background-color: rgba(235,235,235,0.6); border-bottom: 1px solid #ccc; } .sub-nav ul{ float: right;...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.sub-nav{ | .sub-nav{ | ||
− | position: | + | position: fixed; |
− | top: | + | top:64px; |
height:44px; | height:44px; | ||
width: 100%; | width: 100%; |
Latest revision as of 16:12, 18 September 2015
.sub-nav{ position: fixed; top:64px; height:44px; width: 100%; background-color: rgba(235,235,235,0.6); border-bottom: 1px solid #ccc; }
.sub-nav ul{ float: right; margin-right: 5%; }
.sub-nav li{ list-style:none; padding: 0; margin: 0; float:left; margin-left: 16px; margin-top: 10px; }
.sub-nav li a{ display: block; text-decoration: none; color: #333; font-size: 1.2em; }
.sub-nav li a:hover{ color:#0080FF; }