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;...") |
|||
Line 1: | Line 1: | ||
.sub-nav{ | .sub-nav{ | ||
− | position: | + | position: fixed; |
top:44px; | top:44px; | ||
height:44px; | height:44px; |
Revision as of 08:00, 18 September 2015
.sub-nav{ position: fixed; top:44px; 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; }