Team:USTC CHINA/xyshao/home.css
From 2013.igem.org
Line 119: | Line 119: | ||
float: left; | float: left; | ||
display: block; | display: block; | ||
- | width: | + | width:110px;/*调整一、二级菜单每栏宽*/ |
text-align: center; | text-align: center; | ||
height: 35px; | height: 35px; |
Revision as of 05:43, 8 August 2013
@charset "utf-8"; /* CSS Document */
- { margin:0px; padding:0px;}
body { background:#fff; margin:0 auto 0px; padding:5px 0px 0px; width:960px; border-radius:10px; }
.top{ background-image:url(%E7%BD%91%E9%A1%B5%E7%BB%93%E6%9E%84.jpg); height:150px; margin-bottom:10px; border-radius:10px; } .nav{ width:960px; height:66px; z-index:1; }
strong { font-style: normal; font-weight: normal; font-weight: bold; } a { cursor: pointer; text-decoration: none; }
- container {
width: 960px; }
- nav, .nav-container, .nav-container ul, #nav .nav-master-a:hover, #nav .nav-master-a:hover strong, #nav li.current .nav-master-a strong, #nav li.current .nav-master-a, #nav .nav-sub a:hover, #nav .nav-sub a:hover span {
background-image:url(""); background-repeat: no-repeat; }
- nav {
position: relative; height: 66px; background-position: 0pt -230px; background-repeat: repeat-x; } .nav-container { padding-left: 15px; height: 66px; background-position: 0pt 0pt; } .nav-container ul { height: 100%; background-position: right -66px; } .nav-container ul ul.nav-sub { background: none repeat scroll 0% 0% transparent; height: auto; } .nav-master { display: block; float: left; height: 36px; line-height: 36px; text-align: center; padding-right: 4px; } .nav-master-a { display: block; font-size:20px; height: 26px; line-height: 26px; overflow: hidden; background: none repeat scroll 0% 0% transparent; text-decoration: none; margin-top: 5px; } .nav-master-a strong { display: block; color: rgb(255, 255, 255); height: 100%; } li.current .nav-master-a strong, #nav li.current .nav-master-a:hover strong { color: rgb(0, 0, 0); } .nav-master-a:hover { text-decoration: none; background-position: 0pt -315px; } .nav-master-a:hover strong { background-position: right -360px; }
- nav li.current .nav-master-a strong {
background-position: right -180px; padding-top: 2px; }
- nav li.current .nav-master-a {
background-position: 0pt -131px; overflow: hidden; color: rgb(0, 0, 0); height: 31px; }
- nav li.current .nav-master-a:hover strong {
color: rgb(0, 0, 0); } ul.nav-sub { position: absolute; width: 920px;/*菜单总宽*/ text-align: left; top: 38px; left: 15px;/*调整二级菜单位置*/ display: none; background: none repeat scroll 0% 0% transparent; }
- nav .current .nav-sub {
display: block; } .nav-sub li { float: left; display: block; width:110px;/*调整一、二级菜单每栏宽*/ text-align: center; height: 35px; padding-right:4px; }
- nav .nav-sub a {
display: block; height: 22px; overflow: hidden; color: rgb(77, 77, 77); font-weight:300; text-decoration: none; }
- nav .nav-sub a span {
display: block; line-height: 22px; height: 22px; }
- nav .nav-sub a:hover {
background-position: 0pt -405px; }
- nav .nav-sub a:hover span {
background-position: right -446px; }
- slider {
width: 940px; /* important to be same as image width */ height:360px; /* important to be same as image height */ position: relative; /* important */
overflow: hidden; /* important */ margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left:auto; border-radius:10px; }
- slider img{
border: 0px;
}
- sliderContent {
width: 940px; /* important to be same as image width or wider */ position: absolute;
top: 0; margin-left: 0; } .sliderImage {
float: left; position: relative;
display: none; } .sliderImage span {
position: absolute;
font: 12px/14px Arial, Helvetica, sans-serif;
padding: 10px 13px; width:940px;
height:40px;
background-color: #000; color: #fff; display: none;
} .clear { clear: both; } .sliderImage span strong {
font-size: 14px;
} .bottom { bottom: 0;
left: 0;
} ul { list-style-type: none;}
- spo{
width:100%; font-size:24px; font-weight:bold; text-align:center; } .subspon{ width:20%; float:left; overflow:hidden; }
- content1 {
height: 380px; width: 940px; margin-top: 0px; margin-right: auto; margin-bottom:10px; margin-left: auto; border-radius:10px; /*padding: 20px 20px 20px 20px;*/ background-color:#3FF; font-size:28px; font-weight:bold; }
- content2 {
float:left; height: 380px; width: 440px; border-radius:10px; background-color:#fff; font-size:28px; font-weight:bold; }
- content3,#content4 {
float:right; height: 180px; width: 440px; margin-bottom:20px; border-radius:10px; background-color:#fff; font-size:24px; font-weight:bold; }