Team:HUST-China/Templates/css2
From 2011.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<style type="text/css"> | <style type="text/css"> | ||
- | body {background:#f0f0f0;color:#999;font-size:12px; font-family:"Lucida Grande",Arial,sans-serif;line-height:1.5em;} | + | body {background:#f0f0f0; |
- | * { height:auto;margin:0;padding:0;} | + | color:#999; |
+ | font-size:12px; | ||
+ | font-family:"Lucida Grande",Arial,sans-serif; | ||
+ | line-height:1.5em;} | ||
+ | * { height:auto; | ||
+ | margin:0; | ||
+ | padding:0;} | ||
img {border:none;} | img {border:none;} | ||
li {list-style:none;} | li {list-style:none;} | ||
- | #wrap { margin:auto;width:960px;} | + | #wrap { margin:auto; |
+ | width:960px;} | ||
/* @group header */ | /* @group header */ | ||
- | #header {margin-top: | + | #header {margin-top:40px;} |
/* @group main_nav */ | /* @group main_nav */ | ||
- | #main_nav ul {font-size: 13px;list-style: none;} | + | #main_nav ul {font-size: 13px; |
- | #main_nav { background | + | list-style: none;} |
- | background-repeat:no-repeat;height: 41px;overflow: visible;padding-left: 20px;} | + | #main_nav { background:url(https://static.igem.org/mediawiki/2011/5/58/Hust_team_menubg.gif); |
- | #main_nav li {float: left;position: relative;z-index: 5;} | + | background-repeat:no-repeat; |
- | #main_nav li a {color:#fff;display:block;width:91px;height:35px;text-decoration:none;line-height: 35px;text-align: center; margin-top: 2px;} | + | height: 41px; |
+ | overflow: visible; | ||
+ | padding-left: 20px;} | ||
+ | #main_nav li {float: left; | ||
+ | position: relative; | ||
+ | z-index: 5;} | ||
+ | #main_nav li a {color: #fff; | ||
+ | display: block; | ||
+ | width: 91px; | ||
+ | height: 35px; | ||
+ | text-decoration: none; | ||
+ | line-height: 35px; | ||
+ | text-align: center; | ||
+ | margin-top: 2px;} | ||
#main_nav li a:hover {color: #000;} | #main_nav li a:hover {color: #000;} | ||
- | #main_nav li ul li a {font-size: 12px;width: 100%;height: 25px;line-height: 25px;margin: 0px | + | #main_nav li ul li a {font-size: 12px; |
- | #main_nav li ul li a:hover, #main_nav li.focus ul li a:hover { | + | width: 100%; |
- | background-repeat:no-repeat; | + | height: 25px; |
- | #main_nav li.focus a, #main_nav li a:hover {background | + | line-height: 25px; |
- | background-repeat:no-repeat;background-position:top;background-position:left;color: #000;} | + | margin: 0px;} |
- | #main_nav li.focus ul li a {background: none;color: #000;} | + | #main_nav li ul li a:hover, #main_nav li.focus ul li a:hover {https://static.igem.org/mediawiki/2011/e/e6/Hust_team_subnav_over.png); |
- | #main_nav li ul {position: absolute;top: 36px;left: 0px;background: #fff;border-color: #1d70ba;border-style: none solid solid; border-width: medium 1px 1px;display: none;} | + | background-repeat:no-repeat; |
+ | background-position:center;} | ||
+ | #main_nav li.focus a, #main_nav li a:hover {background: url(https://static.igem.org/mediawiki/2011/8/85/Hust_team_nav_over.png) | ||
+ | background-repeat:no-repeat; | ||
+ | background-position:top; | ||
+ | background-position:left; | ||
+ | color: #000;} | ||
+ | #main_nav li.focus ul li a {background: none; | ||
+ | color: #000;} | ||
+ | #main_nav li ul {position: absolute; | ||
+ | top: 36px;left: 0px; | ||
+ | background: #fff; | ||
+ | border-color: #1d70ba; | ||
+ | border-style: none solid solid; | ||
+ | border-width: medium 1px 1px; | ||
+ | display: none;} | ||
#main_nav li ul li{ float: none;} | #main_nav li ul li{ float: none;} | ||
- | |||
</style> | </style> | ||
</html> | </html> |
Revision as of 14:56, 5 October 2011