XiaojiangLi (Talk | contribs) |
XiaojiangLi (Talk | contribs) |
||
Line 10: | Line 10: | ||
<link href="https://2016.igem.org/Template:Tec-Monterrey/css/styleNote?action=raw&ctype=text/css" rel="stylesheet"> | <link href="https://2016.igem.org/Template:Tec-Monterrey/css/styleNote?action=raw&ctype=text/css" rel="stylesheet"> | ||
</head> | </head> | ||
− | + | <body> | |
− | + | <style> | |
− | + | body{ | |
− | <style | + | margin: 0 auto; |
− | body { | + | height:100%; |
− | background | + | background:url(https://static.igem.org/mediawiki/2017/d/d0/T--FAFU-CHINA--12.1.png) scroll center; |
− | + | ||
background-repeat:no-repeat; | background-repeat:no-repeat; | ||
− | + | background-size:100%; | |
− | + | font: 12px "宋体"; | |
− | + | ||
− | font | + | } |
− | + | .maxx{ | |
− | + | height:auto; | |
− | + | width:60%; | |
+ | margin:0 auto; | ||
} | } | ||
</style> | </style> | ||
+ | <div class="maxx"> | ||
− | <style> | + | <style> |
− | . | + | .menuss, .menuss ul { |
− | + | list-style: none; | |
− | + | padding: 0; | |
− | . | + | margin: 0; |
− | + | } | |
− | + | ||
− | + | ||
− | } | + | |
− | .menuss | + | .menuss { |
− | + | height: 58px; | |
− | + | margin-top: 20px; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .menuss li { | |
− | + | background-color: #0C0000; | |
− | + | border-bottom: 2px solid #181818; | |
− | + | border-top: 2px solid #303030; | |
− | + | min-width:16.66%; | |
− | . | + | } |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | .menuss > li { | |
− | .menuss | + | display: block; |
− | + | float: left; | |
− | + | position: relative; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | . | + | .menuss > li:first-child { |
− | + | border-radius: 25px 0 0 0; | |
− | + | } | |
− | + | .menuss > li:last-child { | |
− | + | border-radius: 0 25px 0 0; | |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | .menuss a { | |
− | + | border-left: 3px solid rgba(0, 0, 0, 0); | |
− | + | /*background: url("../img/back.jpg");*/ | |
− | + | color: #808080; | |
− | + | display: block; | |
− | + | font-size: 18px; | |
− | + | line-height: 54px; | |
− | + | padding: 0 25px; | |
− | + | text-decoration: none; | |
− | + | text-transform: uppercase; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | .menuss li:hover { | |
− | + | background-color: #1c1c1c; | |
− | + | background: -moz-linear-gradient(#1c1c1c, #1b1b1b); | |
− | + | background: -ms-linear-gradient(#1c1c1c, #1b1b1b); | |
− | + | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #1c1c1c), color-stop(100%, #1b1b1b)); | |
− | } | + | background: -webkit-linear-gradient(#1c1c1c, #1b1b1b); |
+ | background: -o-linear-gradient(#1c1c1c, #1b1b1b); | ||
+ | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1c1c1c', endColorstr='#1b1b1b'); | ||
+ | -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#1c1c1c', endColorstr='#1b1b1b')"; | ||
+ | background: linear-gradient(#1c1c1c, #1b1b1b); | ||
+ | border-bottom: 2px solid #222222; | ||
+ | border-top: 2px solid #1B1B1B; | ||
+ | /*改变加深父元素的背景*/ | ||
+ | } | ||
+ | |||
+ | |||
+ | .xyz:hover > a { | ||
+ | border-radius: 25px 0 0 0 !important; | ||
+ | border-left: 3px solid #C4302B; | ||
+ | color: #C4302B; | ||
+ | } | ||
+ | .menuss li:hover > a { | ||
+ | border-radius: 5px 0 0 0; | ||
+ | border-left: 3px solid #C4302B; | ||
+ | color: #C4302B; | ||
+ | } | ||
− | + | .submenuss { | |
− | + | left: 0; | |
− | + | max-height: 0; | |
− | + | position: absolute; | |
− | + | top: 100%; | |
− | + | z-index: 0; | |
− | + | -webkit-perspective: 400px; | |
− | + | -moz-perspective: 400px; | |
− | + | -ms-perspective: 400px; | |
− | + | -o-perspective: 400px; | |
− | + | perspective: 400px; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | .submenuss li | + | .submenuss li { |
− | + | opacity: 0; | |
− | + | -webkit-transform: rotateY(90deg); | |
− | + | -moz-transform: rotateY(90deg); | |
− | + | -ms-transform: rotateY(90deg); | |
− | + | -o-transform: rotateY(90deg); | |
− | + | transform: rotateY(90deg); | |
− | + | -webkit-transition: opacity .4s, -webkit-transform .5s; | |
− | + | -moz-transition: opacity .4s, -moz-transform .5s; | |
− | + | -ms-transition: opacity .4s, -ms-transform .5s; | |
− | + | -o-transition: opacity .4s, -o-transform .5s; | |
− | + | transition: opacity .4s, transform .5s; | |
− | + | /*实现下拉菜单螺旋淡出*/ | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
+ | .menuss .submenuss li:hover a { | ||
+ | border-left: 3px solid #454545; | ||
+ | border-radius: 0; | ||
+ | color: #ffffff; | ||
+ | } | ||
− | + | .menuss > li:hover .submenuss, .menuss > li:focus .submenuss { | |
+ | max-height: 2000px; | ||
+ | z-index: 10; | ||
+ | } | ||
− | < | + | .menuss > li:hover .submenuss li, .menuss > li:focus .submenuss li { |
− | <div class=" | + | opacity: 1; |
− | + | -webkit-transform: none; | |
− | + | -moz-transform: none; | |
− | + | -ms-transform: none; | |
− | + | -o-transform: none; | |
− | + | transform: none; | |
− | + | } | |
− | + | /*动画递进的时间 实现一个个螺旋子菜单*/ | |
− | + | .menuss li:hover .submenuss li:nth-child(1) { | |
− | + | -webkit-transition-delay: 0s; | |
− | + | -moz-transition-delay: 0s; | |
− | + | -ms-transition-delay: 0s; | |
− | + | -o-transition-delay: 0s; | |
− | + | transition-delay: 0s; | |
− | + | } | |
− | + | ||
− | + | .menuss li:hover .submenuss li:nth-child(2) { | |
− | + | -webkit-transition-delay: 50ms; | |
+ | -moz-transition-delay: 50ms; | ||
+ | -ms-transition-delay: 50ms; | ||
+ | -o-transition-delay: 50ms; | ||
+ | transition-delay: 50ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(3) { | ||
+ | -webkit-transition-delay: 100ms; | ||
+ | -moz-transition-delay: 100ms; | ||
+ | -ms-transition-delay: 100ms; | ||
+ | -o-transition-delay: 100ms; | ||
+ | transition-delay: 100ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(4) { | ||
+ | -webkit-transition-delay: 150ms; | ||
+ | -moz-transition-delay: 150ms; | ||
+ | -ms-transition-delay: 150ms; | ||
+ | -o-transition-delay: 150ms; | ||
+ | transition-delay: 150ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(5) { | ||
+ | -webkit-transition-delay: 200ms; | ||
+ | -moz-transition-delay: 200ms; | ||
+ | -ms-transition-delay: 200ms; | ||
+ | -o-transition-delay: 200ms; | ||
+ | transition-delay: 200ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(6) { | ||
+ | -webkit-transition-delay: 250ms; | ||
+ | -moz-transition-delay: 250ms; | ||
+ | -ms-transition-delay: 250ms; | ||
+ | -o-transition-delay: 250ms; | ||
+ | transition-delay: 250ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(7) { | ||
+ | -webkit-transition-delay: 300ms; | ||
+ | -moz-transition-delay: 300ms; | ||
+ | -ms-transition-delay: 300ms; | ||
+ | -o-transition-delay: 300ms; | ||
+ | transition-delay: 300ms; | ||
+ | } | ||
+ | |||
+ | .menuss li:hover .submenuss li:nth-child(8) { | ||
+ | -webkit-transition-delay: 350ms; | ||
+ | -moz-transition-delay: 350ms; | ||
+ | -ms-transition-delay: 350ms; | ||
+ | -o-transition-delay: 350ms; | ||
+ | transition-delay: 350ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(1) { | ||
+ | -webkit-transition-delay: 350ms; | ||
+ | -moz-transition-delay: 350ms; | ||
+ | -ms-transition-delay: 350ms; | ||
+ | -o-transition-delay: 350ms; | ||
+ | transition-delay: 350ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(2) { | ||
+ | -webkit-transition-delay: 300ms; | ||
+ | -moz-transition-delay: 300ms; | ||
+ | -ms-transition-delay: 300ms; | ||
+ | -o-transition-delay: 300ms; | ||
+ | transition-delay: 300ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(3) { | ||
+ | -webkit-transition-delay: 250ms; | ||
+ | -moz-transition-delay: 250ms; | ||
+ | -ms-transition-delay: 250ms; | ||
+ | -o-transition-delay: 250ms; | ||
+ | transition-delay: 250ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(4) { | ||
+ | -webkit-transition-delay: 200ms; | ||
+ | -moz-transition-delay: 200ms; | ||
+ | -ms-transition-delay: 200ms; | ||
+ | -o-transition-delay: 200ms; | ||
+ | transition-delay: 200ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(5) { | ||
+ | -webkit-transition-delay: 150ms; | ||
+ | -moz-transition-delay: 150ms; | ||
+ | -ms-transition-delay: 150ms; | ||
+ | -o-transition-delay: 150ms; | ||
+ | transition-delay: 150ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(6) { | ||
+ | -webkit-transition-delay: 100ms; | ||
+ | -moz-transition-delay: 100ms; | ||
+ | -ms-transition-delay: 100ms; | ||
+ | -o-transition-delay: 100ms; | ||
+ | transition-delay: 100ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(7) { | ||
+ | -webkit-transition-delay: 50ms; | ||
+ | -moz-transition-delay: 50ms; | ||
+ | -ms-transition-delay: 50ms; | ||
+ | -o-transition-delay: 50ms; | ||
+ | transition-delay: 50ms; | ||
+ | } | ||
+ | |||
+ | .submenuss li:nth-child(8) { | ||
+ | -webkit-transition-delay: 0s; | ||
+ | -moz-transition-delay: 0s; | ||
+ | -ms-transition-delay: 0s; | ||
+ | -o-transition-delay: 0s; | ||
+ | transition-delay: 0s; | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <div class="nav"> | ||
+ | <ul class="menuss"> | ||
+ | <li class="xyz"><a href="https://2017.igem.org/Team:FAFU-CHINA">HOME</a></li> | ||
+ | <li><a href="javascript:;">PROJECT</a> | ||
+ | <ul class="submenuss"> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Description">Description</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Experiments">Experiments</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Results">Results</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Model">Model</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Parts">Parts</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Human_Practices">Human Practices</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Safety">Safety</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Notebook">Notebook</a></li> | ||
+ | <li><a href="https://2017.igem.org/Team:FAFU-CHINA/Team">Team</a></li> | ||
+ | </ul> | ||
+ | </div> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 05:39, 13 August 2017