|
|
(242 intermediate revisions not shown) |
Line 7: |
Line 7: |
| | | |
| <p> | | <p> |
- | <style> | + | <style type="text/css"> body {background-image:url(https://static.igem.org/mediawiki/2014/5/57/Sjtu_software_background.jpg); background-repeat:no-repeat; background-attachment:fixed} </style> |
- | #menu {
| + | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/182min.js%20?action=raw&ctype=text/js"></script> |
- | font: 13px "trebuchet MS", Arial, Helvetica;
| + | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/toolsmin.js%20?action=raw&ctype=text/js"></script> |
- | }
| + | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/main.js%20?action=raw&ctype=text/js"></script> |
- | #menu a {
| + | |
- | color: #2A679F;
| + | |
- | }
| + | |
- | #menu, #menu ul {
| + | |
- | margin: 0;
| + | |
- | padding: 0;
| + | |
- | list-style: none;
| + | |
- | }
| + | |
- | #menu {
| + | |
- | width: 960px;
| + | |
- | margin: 60px auto;
| + | |
- | border: 1px solid #222;
| + | |
- | background-color: #111;
| + | |
- | background-image: -moz-linear-gradient(#444, #111);
| + | |
- | background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
| + | |
- | background-image: -webkit-linear-gradient(#444, #111);
| + | |
- | background-image: -o-linear-gradient(#444, #111);
| + | |
- | background-image: -ms-linear-gradient(#444, #111);
| + | |
- | background-image: linear-gradient(#444, #111);
| + | |
- | -moz-border-radius: 6px;
| + | |
- | -webkit-border-radius: 6px;
| + | |
- | border-radius: 6px;
| + | |
- | -moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | -webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | } | + | |
- | #menu:before, #menu:after {
| + | |
- | content: "";
| + | |
- | display: table;
| + | |
- | }
| + | |
- | #menu:after {
| + | |
- | clear: both;
| + | |
- | }
| + | |
- | #menu {
| + | |
- | zoom: 1;
| + | |
- | }
| + | |
- | #menu li {
| + | |
- | float: left;
| + | |
- | border-right: 1px solid #222;
| + | |
- | -moz-box-shadow: 1px 0 0 #444;
| + | |
- | -webkit-box-shadow: 1px 0 0 #444;
| + | |
- | box-shadow: 1px 0 0 #444;
| + | |
- | position: relative;
| + | |
- | }
| + | |
- | #menu a {
| + | |
- | float: left;
| + | |
- | padding: 12px 30px;
| + | |
- | color: #999;
| + | |
- | text-transform: uppercase;
| + | |
- | font: bold 12px Arial, Helvetica;
| + | |
- | text-decoration: none;
| + | |
- | text-shadow: 0 1px 0 #000;
| + | |
- | }
| + | |
- | #menu li:hover > a {
| + | |
- | color: #fafafa;
| + | |
- | }
| + | |
- | *html #menu li a:hover {
| + | |
- | color: #fafafa;
| + | |
- | }
| + | |
- | #menu ul {
| + | |
- | margin: 20px 0 0 0;
| + | |
- | _margin: 0;
| + | |
- | opacity: 0;
| + | |
- | visibility: hidden;
| + | |
- | position: absolute;
| + | |
- | top: 38px;
| + | |
- | left: 0;
| + | |
- | z-index: 1;
| + | |
- | background: #444;
| + | |
- | background: -moz-linear-gradient(#444, #111);
| + | |
- | background-image: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
| + | |
- | background: -webkit-linear-gradient(#444, #111);
| + | |
- | background: -o-linear-gradient(#444, #111);
| + | |
- | background: -ms-linear-gradient(#444, #111);
| + | |
- | background: linear-gradient(#444, #111);
| + | |
- | -moz-box-shadow: 0 -1px rgba(255,255,255,.3);
| + | |
- | -webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);
| + | |
- | box-shadow: 0 -1px 0 rgba(255,255,255,.3);
| + | |
- | -moz-border-radius: 3px;
| + | |
- | -webkit-border-radius: 3px;
| + | |
- | border-radius: 3px;
| + | |
- | -webkit-transition: all .2s ease-in-out;
| + | |
- | -moz-transition: all .2s ease-in-out;
| + | |
- | -ms-transition: all .2s ease-in-out;
| + | |
- | -o-transition: all .2s ease-in-out;
| + | |
- | transition: all .2s ease-in-out;
| + | |
- | }
| + | |
- | #menu li:hover > ul {
| + | |
- | opacity: 1;
| + | |
- | visibility: visible;
| + | |
- | margin: 0;
| + | |
- | }
| + | |
- | #menu ul ul {
| + | |
- | top: 0;
| + | |
- | left: 150px;
| + | |
- | margin: 0 0 0 20px;
| + | |
- | _margin: 0;
| + | |
- | -moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
| + | |
- | -webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
| + | |
- | box-shadow: -1px 0 0 rgba(255,255,255,.3);
| + | |
- | }
| + | |
- | #menu ul li {
| + | |
- | float: none;
| + | |
- | display: block;
| + | |
- | border: 0;
| + | |
- | _line-height: 0;
| + | |
- | -moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
| + | |
- | -webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
| + | |
- | box-shadow: 0 1px 0 #111, 0 2px 0 #666;
| + | |
- | }
| + | |
- | #menu ul li:last-child {
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu ul a {
| + | |
- | padding: 10px;
| + | |
- | width: 130px;
| + | |
- | _height: 10px;
| + | |
- | display: block;
| + | |
- | white-space: nowrap;
| + | |
- | float: none;
| + | |
- | text-transform: none;
| + | |
- | }
| + | |
- | #menu ul a:hover {
| + | |
- | background-color: #0186ba;
| + | |
- | background-image: -moz-linear-gradient(#04acec, #0186ba);
| + | |
- | background-image: -webkit-gradient(linear, left top, left bottom, from(#04acec), to(#0186ba));
| + | |
- | background-image: -webkit-linear-gradient(#04acec, #0186ba);
| + | |
- | background-image: -o-linear-gradient(#04acec, #0186ba);
| + | |
- | background-image: -ms-linear-gradient(#04acec, #0186ba);
| + | |
- | background-image: linear-gradient(#04acec, #0186ba);
| + | |
- | }
| + | |
- | #menu ul li:first-child > a {
| + | |
- | -moz-border-radius: 3px 3px 0 0;
| + | |
- | -webkit-border-radius: 3px 3px 0 0;
| + | |
- | border-radius: 3px 3px 0 0;
| + | |
- | }
| + | |
- | #menu ul li:first-child > a:after {
| + | |
- | content: '';
| + | |
- | position: absolute;
| + | |
- | left: 40px;
| + | |
- | top: -6px;
| + | |
- | border-left: 6px solid transparent;
| + | |
- | border-right: 6px solid transparent;
| + | |
- | border-bottom: 6px solid #444;
| + | |
- | }
| + | |
- | #menu ul ul li:first-child a:after {
| + | |
- | left: -6px;
| + | |
- | top: 50%;
| + | |
- | margin-top: -6px;
| + | |
- | border-left: 0;
| + | |
- | border-bottom: 6px solid transparent;
| + | |
- | border-top: 6px solid transparent;
| + | |
- | border-right: 6px solid #3b3b3b;
| + | |
- | }
| + | |
- | #menu ul li:first-child a:hover:after {
| + | |
- | border-bottom-color: #04acec;
| + | |
- | }
| + | |
- | #menu ul ul li:first-child a:hover:after {
| + | |
- | border-right-color: #0299d3;
| + | |
- | border-bottom-color: transparent;
| + | |
- | }
| + | |
- | #menu ul li:last-child > a {
| + | |
- | -moz-border-radius: 0 0 3px 3px;
| + | |
- | -webkit-border-radius: 0 0 3px 3px;
| + | |
- | border-radius: 0 0 3px 3px;
| + | |
- | }
| + | |
- | /* Mobile */ | + | |
- | #menu-trigger {
| + | |
- | display: none;
| + | |
- | }
| + | |
- | @media screen and (max-width: 600px) {
| + | |
- | /* nav-wrap */
| + | |
- | #menu-wrap {
| + | |
- | position: relative;
| + | |
- | }
| + | |
- | #menu-wrap * {
| + | |
- | -moz-box-sizing: border-box;
| + | |
- | -webkit-box-sizing: border-box;
| + | |
- | box-sizing: border-box;
| + | |
- | }
| + | |
- | /* menu icon */
| + | |
- | #menu-trigger {
| + | |
- | display: block;
| + | |
- | height: 40px;
| + | |
- | line-height: 40px;
| + | |
- | cursor: pointer;
| + | |
- | padding: 0 0 0 35px;
| + | |
- | border: 1px solid #222;
| + | |
- | color: #fafafa;
| + | |
- | font-weight: bold;
| + | |
- | background-color: #111;
| + | |
- | -moz-border-radius: 6px;
| + | |
- | -webkit-border-radius: 6px;
| + | |
- | border-radius: 6px;
| + | |
- | -moz-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | -webkit-box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | box-shadow: 0 1px 1px #777, 0 1px 0 #666 inset;
| + | |
- | }
| + | |
- | /* main nav */
| + | |
- | #menu {
| + | |
- | margin: 0;
| + | |
- | padding: 10px;
| + | |
- | position: absolute;
| + | |
- | top: 40px;
| + | |
- | width: 100%;
| + | |
- | z-index: 1;
| + | |
- | background-color: #444;
| + | |
- | display: none;
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu:after {
| + | |
- | content: '';
| + | |
- | position: absolute;
| + | |
- | left: 25px;
| + | |
- | top: -8px;
| + | |
- | border-left: 8px solid transparent;
| + | |
- | border-right: 8px solid transparent;
| + | |
- | border-bottom: 8px solid #444;
| + | |
- | }
| + | |
- | #menu ul {
| + | |
- | position: static;
| + | |
- | visibility: visible;
| + | |
- | opacity: 1;
| + | |
- | margin: 0;
| + | |
- | background: none;
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu ul ul {
| + | |
- | margin: 0 0 0 20px !important;
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu li {
| + | |
- | position: static;
| + | |
- | display: block;
| + | |
- | float: none;
| + | |
- | border: 0;
| + | |
- | margin: 5px;
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu ul li {
| + | |
- | margin-left: 20px;
| + | |
- | -moz-box-shadow: none;
| + | |
- | -webkit-box-shadow: none;
| + | |
- | box-shadow: none;
| + | |
- | }
| + | |
- | #menu a {
| + | |
- | display: block;
| + | |
- | float: none;
| + | |
- | padding: 0;
| + | |
- | color: #999;
| + | |
- | }
| + | |
- | #menu a:hover {
| + | |
- | color: #fafafa;
| + | |
- | }
| + | |
- | #menu ul a {
| + | |
- | padding: 0;
| + | |
- | width: auto;
| + | |
- | }
| + | |
- | #menu ul a:hover {
| + | |
- | background: none;
| + | |
- | }
| + | |
- | #menu ul li:first-child a:after, #menu ul ul li:first-child a:after {
| + | |
- | border: 0;
| + | |
- | }
| + | |
- | }
| + | |
- | @media screen and (min-width: 600px) {
| + | |
- | #menu {
| + | |
- | display: block !important;
| + | |
- | }
| + | |
- | }
| + | |
- | /* iPad */ | + | |
- | .no-transition {
| + | |
- | -webkit-transition: none;
| + | |
- | -moz-transition: none;
| + | |
- | -ms-transition: none;
| + | |
- | -o-transition: none;
| + | |
- | transition: none;
| + | |
- | opacity: 1;
| + | |
- | visibility: visible;
| + | |
- | display: none;
| + | |
- | }
| + | |
- | #menu li:hover > .no-transition {
| + | |
- | display: block;
| + | |
- | }
| + | |
- | </style> | + | |
| <style type="text/css"> | | <style type="text/css"> |
- | .firstHeading { | + | |
- | width: 0px;
| + | .slider |
- | height: 0px;
| + | { |
- | margin: -38px auto;
| + | background: #d5d5d5; |
- | padding-top: 0px;
| + | height: 7px; |
- | margin-bottom: 0px;
| + | position: relative; |
- | font-family: Georgia, Times, "Times New Roman", serif;
| + | cursor: pointer; |
| + | width: 100%; |
| + | clear: right; |
| + | top: 0px; |
| + | -moz-border-radius: 5px; |
| + | -webkit-border-radius: 5px; |
| + | -moz-box-shadow: inset 0 0 8px #000; |
| + | margin: 10px 0 10px 0; |
| } | | } |
| | | |
- | /*returnTop*/ | + | /* progress bar (enabled with progress: true) */ |
- | p#back-to-top{
| + | .progress |
- | position:fixed; | + | { |
- | display:none; | + | height: 7px; |
- | bottom:50px; | + | position: relative; |
- | right:30px; | + | background: #5389c5; /* Old browsers */ |
| + | background: -moz-linear-gradient(top, #5389c5 0%, #4775a9 100%); /* FF3.6+ */ |
| + | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5389c5), color-stop(100%,#4775a9)); /* Chrome,Safari4+ */ |
| + | background: -webkit-linear-gradient(top, #5389c5 0%,#4775a9 100%); /* Chrome10+,Safari5.1+ */ |
| + | background: -o-linear-gradient(top, #5389c5 0%,#4775a9 100%); /* Opera 11.10+ */ |
| + | background: -ms-linear-gradient(top, #5389c5 0%,#4775a9 100%); /* IE10+ */ |
| + | background: linear-gradient(to bottom, #5389c5 0%,#4775a9 100%); /* W3C */ |
| + | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5389c5', endColorstr='#4775a9',GradientType=0 ); /* IE6-9 */ |
| + | -moz-border-radius: 5px; |
| + | -webkit-border-radius: 5px; |
| + | top: 0px; |
| + | border: 1px solid #4b7bb1; |
| + | |
| + | -moz-box-shadow: inset 0 .7px 0 0 rgba(255, 255, 255, 0.3); |
| + | -webkit-box-shadow: inset 0 .7px 0 0 rgba(255, 255, 255, 0.3); |
| + | box-shadow: inset 0 .7px 0 0 rgba(255, 255, 255, 0.3); |
| } | | } |
- | p#back-to-top a{
| + | |
- | text-align:center; | + | /* drag handle */ |
- | text-decoration:none; | + | .handle |
- | color:#d1d1d1; | + | { |
- | display:block; | + | background: url(../images/handle.png) repeat-x center; |
- | width:112px; | + | height: 16px; |
- | /*使用CSS3中的transition属性给跳转链接中的文字添加渐变效果*/ | + | width: 16px; |
- | -moz-transition:color 1s;
| + | top: -5px; |
- | -webkit-transition:color 1s; | + | position: absolute; |
- | -o-transition:color 1s; | + | display: block; |
| + | margin-top: 1px; |
| + | cursor: pointer; |
| + | |
| } | | } |
- | p#back-to-top a:hover{
| + | |
- | color:#979797; | + | /* the input field */ |
| + | .range |
| + | { |
| + | display: none; |
| } | | } |
- | p#back-to-top a span{
| + | /* |
- | background:transparent url(https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png) no-repeat -25px -290px;
| + | * CSS Expandable Menu |
- | border-radius:6px;
| + | * @author: Francisco Neves |
- | display:block;
| + | */ |
- | height:40px;
| + | |
- | width:112px;
| + | |
- | margin-bottom:5px;
| + | |
- | /*使用CSS3中的transition属性给<span>标签背景颜色添加渐变效果*/
| + | |
- | -moz-transition:background 1s;
| + | |
- | -webkit-transition:background 1s;
| + | |
- | -o-transition:background 1s;
| + | |
- | }
| + | |
- | #back-to-top a:hover span{
| + | |
- | background:transparent url(https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png) no-repeat -25px -290px;
| + | |
- | }
| + | |
- | </style>
| + | |
- | </p>
| + | |
| | | |
| + | /** Reset */ |
| + | * { font-family: "museo500", "Arial"; font-size: 12px; list-style: none; margin: 0; padding: 0; outline: 0; text-decoration: none; box-sizing: border-box !important; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; -ms-box-sizing: border-box !important; } |
| | | |
- |
| + | /** |
| + | * START FREEBIE STYLES |
| + | */ |
| | | |
- | <!--<body style="background-image:url(https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png);background-position:center; background-repeat:repeat-y repeat-x">-->
| + | /*! Font Faces */ |
| + | @font-face{ |
| + | font-family: 'museo500'; |
| + | src: url('../fonts/MuseoSans_500-webfont.eot'); |
| + | src: url('../fonts/MuseoSans_500-webfont.eot?#iefix') format('embedded-opentype'), |
| + | url('../fonts/MuseoSans_500-webfont.woff') format('woff'), |
| + | url('../fonts/MuseoSans_500-webfont.ttf') format('truetype'), |
| + | url('../fonts/MuseoSans_500-webfont.svg#museo_sans_500regular') format('svg'); |
| + | font-weight: normal; |
| + | font-style: normal; |
| + | } |
| | | |
| + | /*! Freebie Skelet */ |
| + | ul.expmenu { width: 200px; } |
| + | ul.expmenu * { list-style: none; } |
| + | ul.expmenu > li > div.header { padding: 12px; border-bottom: 1px #396e9f solid; } |
| + | ul.expmenu > li:last-child > div.header { border-bottom: none; } |
| + | ul.expmenu > li ul li { background-color: #ececec; padding: 12px; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #fff; color: #727272; text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8); } |
| + | ul.expmenu > li ul li:last-child { border-bottom: none; } |
| + | ul.expmenu > li ul li.selected { background-color: #f4f4f4; } |
| + | ul.expmenu div.header |
| + | { |
| + | color: #203f61; |
| + | text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2); |
| | | |
| + | background: #4d7fb8; /* Old browsers */ |
| + | background: -moz-linear-gradient(top, #4d7fb8 0%, #4572a5 100%); /* FF3.6+ */ |
| + | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d7fb8), color-stop(100%,#4572a5)); /* Chrome,Safari4+ */ |
| + | background: -webkit-linear-gradient(top, #4d7fb8 0%,#4572a5 100%); /* Chrome10+,Safari5.1+ */ |
| + | background: -o-linear-gradient(top, #4d7fb8 0%,#4572a5 100%); /* Opera 11.10+ */ |
| + | background: -ms-linear-gradient(top, #4d7fb8 0%,#4572a5 100%); /* IE10+ */ |
| + | background: linear-gradient(to bottom, #4d7fb8 0%,#4572a5 100%); /* W3C */ |
| + | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d7fb8', endColorstr='#4572a5',GradientType=0 ); /* IE6-9 */ |
| + | } |
| + | ul.expmenu > li > div.header > .label { padding-left: 24px; background: no-repeat; } |
| + | ul.expmenu > li > div.header > .arrow { display: block; width: 16px; height: 16px; background: no-repeat center; float: right; } |
| + | ul.expmenu > li > div.header > .arrow.up { background-image: url(../images/arrow_u.png); } |
| + | ul.expmenu > li > div.header > .arrow.down { background-image: url(../images/arrow_d.png); } |
| | | |
| + | /* Mouse Events */ |
| + | ul.expmenu div.header:hover |
| + | { |
| + | background: #4571a0; /* Old browsers */ |
| + | background: -moz-linear-gradient(top, #4d7fb8 0%, #4571a0 100%); /* FF3.6+ */ |
| + | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4d7fb8), color-stop(100%,#4571a0)); /* Chrome,Safari4+ */ |
| + | background: -webkit-linear-gradient(top, #4d7fb8 0%,#4571a0 100%); /* Chrome10+,Safari5.1+ */ |
| + | background: -o-linear-gradient(top, #4d7fb8 0%,#4571a0 100%); /* Opera 11.10+ */ |
| + | background: -ms-linear-gradient(top, #4d7fb8 0%,#4571a0 100%); /* IE10+ */ |
| + | background: linear-gradient(to bottom, #4d7fb8 0%,#4571a0 100%); /* W3C */ |
| + | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d7fb8', endColorstr='#4571a0',GradientType=0 ); /* IE6-9 */ |
| | | |
| + | cursor: pointer; |
| + | } |
| | | |
| + | ul.expmenu > li ul li:not(.selected):hover |
| + | { |
| + | background: #e7e7e7; /* Old browsers */ |
| | | |
- | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
| + | cursor: pointer; |
- | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
| + | } |
- | <link href="https://2014.igem.org/Team:SJTU-Software/style.css%20?action=raw&ctype=text/css" rel="stylesheet" type="text/css" media="all"/>
| + | ul.expmenu > li ul li:not(.selected):active |
- | <link href="https://2014.igem.org/Team:SJTU-Software/slider.css%20?action=raw&ctype=text/css" rel="stylesheet" type="text/css" media="all"/>
| + | { |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/min.js%20?action=raw&ctype=text/js"></script>
| + | background: #f1f1f1; /* Old browsers */ |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/easing.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script type="text/javascript" src="https://2014.igem.org/Team:SJTU-Software/cameramin.js%20?action=raw&ctype=text/js"></script>
| + | |
- | <script>
| + | |
- | jQuery(function(){ | + | |
- | | + | |
- | jQuery('#camera_wrap_1').camera({
| + | |
- | thumbnails: true
| + | |
- | });
| + | |
- | });
| + | |
- | </script>
| + | |
- | </head>
| + | |
- | <body>
| + | |
- | <h1 style="margin: 40px; font: 32px Microsoft Yahei; text-align: center;">多级CSS3动画下拉菜单</h1>
| + | |
| | | |
- | <div id="menu-wrap">
| + | cursor: pointer; |
- | <ul id="menu">
| + | } |
- | <li><a href="http://www.dowebok.com/" target="_blannk">首 页</a></li>
| + | /** |
- | <li> <a href="">分 类</a>
| + | * END FREEBIE STYLES |
- | <ul> | + | */ |
- | <li> <a href="">页面重构</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">HTML</a></li>
| + | |
- | <li><a href="">CSS</a></li>
| + | |
- | <li><a href="">Photoshop</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">编程语言</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">JavaScript</a></li>
| + | |
- | <li><a href="">PHP</a></li>
| + | |
- | <li><a href="">Java</a></li>
| + | |
- | <li><a href="">Python</a></li>
| + | |
- | <li><a href="">NodeJS</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">调试工具</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">Firebug</a></li>
| + | |
- | <li><a href="">Web Developer Toolbar</a></li>
| + | |
- | <li><a href="">IETester</a></li>
| + | |
- | <li><a href="">YSlow</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">浏览器</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">IE</a></li>
| + | |
- | <li><a href="">Firefox</a></li>
| + | |
- | <li><a href="">Chrome</a></li>
| + | |
- | <li><a href="">Safari</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">链 接</a>
| + | |
- | <ul>
| + | |
- | <li> <a href="">门户</a>
| + | |
- | <ul>
| + | |
- | <li> <a href="">百度</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">百度知道</a></li>
| + | |
- | <li><a href="">百度音乐</a></li>
| + | |
- | <li><a href="">百度百科</a></li>
| + | |
- | <li><a href="">百度贴吧</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">腾讯</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">腾讯网</a></li>
| + | |
- | <li><a href="">QQ空间</a></li>
| + | |
- | <li><a href="">QQ音乐</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">新浪</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">新浪首页</a></li>
| + | |
- | <li><a href="">新浪微博</a></li>
| + | |
- | <li><a href="">新浪博客</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">网易</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">163首页</a></li>
| + | |
- | <li><a href="">163邮箱</a></li>
| + | |
- | <li><a href="">网易科技</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">新闻</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">搜狐新闻</a></li>
| + | |
- | <li><a href="">腾讯新闻</a></li>
| + | |
- | <li><a href="">新浪新闻</a></li>
| + | |
- | <li><a href="">网易新闻</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">社交</a>
| + | |
- | <ul>
| + | |
- | <li> <a href="">社交1</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">社交1-1</a></li>
| + | |
- | <li><a href="">社交1-2</a></li>
| + | |
- | <li><a href="">社交1-3</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">社交2</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">社交2-1</a></li>
| + | |
- | <li><a href="">社交2-2</a></li>
| + | |
- | <li><a href="">社交2-3</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li> <a href="">社交3</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">社交3-1</a></li>
| + | |
- | <li><a href="">社交3-2</a></li>
| + | |
- | <li><a href="">社交3-3</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | <li><a href="">关 于</a></li>
| + | |
- | <li><a href="">联 系</a>
| + | |
- | <ul>
| + | |
- | <li><a href="">微博</a></li>
| + | |
- | <li><a href="">微信</a></li>
| + | |
- | <li><a href="">E-mail</a></li>
| + | |
- | </ul>
| + | |
- | </li>
| + | |
- | </ul>
| + | |
- | </div>
| + | |
- |
| + | |
- | <div class="slider" style="width:75%;">
| + | |
- | <div class="fluid_container">
| + | |
- | <div class="camera_wrap camera_azure_skin" id="camera_wrap_1" >
| + | |
- | <div data-thumb="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg" data-src="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg"> </div>
| + | |
- | <div data-thumb="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg" data-src="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg"> </div>
| + | |
- | <div data-thumb="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg" data-src="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg"> </div>
| + | |
- | <div data-thumb="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg" data-src="https://static.igem.org/mediawiki/2014/6/6a/Sjtu_software_test.jpg"> </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="clear"></div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
| | | |
- | <div class="main" align="center" >
| |
- | <div class="wrap" >
| |
- | <div class="services" >
| |
- | <div class="section group"style="width:85%;" >
| |
- |
| |
- | <div class="listview_1_of_2 images_1_of_2" >
| |
- | <div class="listimg listimg_2_of_1" >
| |
- | <img src="https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png" alt="" />
| |
- | </div>
| |
- | <div class="text list_2_of_1" >
| |
- | <h3>Search</h3>
| |
- | <p><div style="text-align:left;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.Lorem ipsum dolor sit amet.</div></p>
| |
- | </div>
| |
- | </div>
| |
- | <div class="listview_1_of_2 images_1_of_2" >
| |
- | <div class="listimg listimg_2_of_1">
| |
- | <img src="https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png" alt="" />
| |
- | </div>
| |
- | <div class="text list_2_of_1">
| |
- | <h3>Present</h3>
| |
- | <p><div style="text-align:left;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.Lorem ipsum dolor sit amet.</div></p>
| |
- | </div>
| |
- | </div>
| |
- | </div>
| |
- |
| |
- | <div class="section group" style="width:85%;">
| |
- | <div class="listview_1_of_2 images_1_of_2" >
| |
- | <div class="listimg listimg_2_of_1">
| |
- | <img src="https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png" alt="">
| |
- | </div>
| |
- | <div class="text list_2_of_1">
| |
- | <h3>Upload</h3>
| |
- |
| |
- | <p><div style="text-align:left;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.Lorem ipsum dolor sit amet.</div></p>
| |
- | </div>
| |
- | </div>
| |
- | <div class="listview_1_of_2 images_1_of_2" >
| |
- | <div class="listimg listimg_2_of_1">
| |
- | <img src="https://static.igem.org/mediawiki/2014/3/3c/Sjtu_software_img100.png" alt="">
| |
- | </div>
| |
- | <div class="text list_2_of_1" >
| |
- | <h3>Compare</h3>
| |
- | <p><div style="text-align:left;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.Lorem ipsum dolor sit amet.</div></p>
| |
- |
| |
- | </div>
| |
- | </div>
| |
- | </div>
| |
- |
| |
- | </div>
| |
- | </div>
| |
- |
| |
- |
| |
- | <div class="copy-right"style="width:75%;" align:center>
| |
- | <div class="wrap">
| |
- | <p class="copy">SJTU-Software</p><br>
| |
- | <p class="copy">Shanghai Jiao Tong University</p><br>
| |
- | <p class="copy"> 800, Dongchuan Road</p><br>
| |
- | <p class="copy"> 200240 Shanghai, China</p><br>
| |
- | <div class="clear"></div>
| |
- | </div>
| |
- | </div>
| |
- | <p id="back-to-top"><a href="#top"><span><img src="https://static.igem.org/mediawiki/2014/c/cc/Sjtu_software_teamlogo.png" alt="" /></span>back to top</a></p>
| |
- | <div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
| |
- | <script>
| |
- | $(function(){
| |
- | //当滚动条的位置处于距顶部100像素以下时,跳转链接出现,否则消失
| |
- | $(function () {
| |
- | $(window).scroll(function(){
| |
- | if ($(window).scrollTop()>10){
| |
- | $("#back-to-top").fadeIn(1500);
| |
- | }
| |
- | else
| |
- | {
| |
- | $("#back-to-top").fadeOut(1500);
| |
- | }
| |
- | });
| |
| | | |
- | //当点击跳转链接后,回到页面顶部位置
| + | /** |
| + | * Not important styles |
| + | */ |
| + | body |
| + | { |
| + | color: #b1b1b1; |
| + | background: #e1e1e1; /* Old browsers */ |
| | | |
- | $("#back-to-top").click(function(){
| + | font-family: "museo500"; |
- | $('body,html').animate({scrollTop:0},1000);
| + | } |
- | return false;
| + | ul#pagination-freebie { display: table; padding-right: 20px; margin: 20px auto; list-style: none; } |
- | });
| + | ul#pagination-freebie:last-child { padding-right: 0; } |
- | });
| + | ul#pagination-freebie li { float: left; margin-bottom: 20px } |
- | });
| + | ul#pagination-freebie li:last-child { margin-right: 0; } |
- | </script>
| + | |
| | | |
| + | div#text { text-align: center; font-size: 48px; width: 610px; margin: 0 auto; margin-top: 50px; margin-top: 80px; } |
| + | div#smalltext { text-align: center; font-size: 15px; width: 600px; margin: 0 auto; } |
| + | div#content { display: table; margin: 0 auto; padding: 30px; } |
| + | </style> |
| | | |
- | <script>
| |
- | $(function() {
| |
- | if ($.browser.msie && $.browser.version.substr(0,1) < 7){
| |
- | $('li').has('ul').mouseover(function(){
| |
- | $(this).children('ul').css('visibility','visible');
| |
- | }).mouseout(function(){
| |
- | $(this).children('ul').css('visibility','hidden');
| |
- | });
| |
- | }
| |
| | | |
- | /* Mobile */
| + | <div align="center"> |
- | $('#menu-wrap').prepend('<div id="menu-trigger">Menu</div>');
| + | <div class="container2" style="height:700px;width:71%;background-color:#FFFFFF;"> |
- | $("#menu-trigger").on('click', function(){
| + | <div align=left> |
- | $("#menu").slideToggle();
| + | <div class="container2" style="height:700px;width:30%;background-color:#00FF00;float:left; display:inline" > |
- | });
| + | <div id="content"> |
| + | <ul id="expmenu-freebie"> |
| + | <li> |
| + | <!-- Start Freebie --> |
| + | <ul class="expmenu"> |
| + | <li> |
| + | <div class="header"> |
| + | <span class="label" style="background-image: url(images/messages.png);">Messages</span> |
| + | <span class="arrow up"></span> |
| + | </div> |
| + | <ul class="menu"> |
| + | <li>Notification Settings</li> |
| + | <li class="selected">Email Alerts</li> |
| + | <li>Privacy Settings</li> |
| + | </ul> |
| + | </li> |
| + | <li> |
| + | <div class="header"> |
| + | <span class="label" style="background-image: url(images/user.png);">User Controls</span> |
| + | <span class="arrow up"></span> |
| + | </div> |
| + | <ul class="menu"> |
| + | <li><input type="range" name="range" min="0" max="100" value="35" style="width: 100%;" /></li> |
| + | </ul> |
| + | </li> |
| + | <li> |
| + | <div class="header"> |
| + | <span class="label" style="background-image: url(images/pc.png);">Screen Settings</span> |
| + | <span class="arrow down"></span> |
| + | </div> |
| + | <ul class="menu" style="display:none"> |
| + | <li>Your settings</li> |
| + | </ul> |
| + | </li> |
| + | <li> |
| + | <div class="header"> |
| + | <span class="label" style="background-image: url(images/search.png);">Search</span> |
| + | </div> |
| + | </li> |
| + | </ul> |
| + | <!-- End Freebie --> |
| + | </li> |
| + | </ul> |
| + | </div> |
| + | </div> |
| + | |
| + | |
| + | <div class="container2" style="height:700px;width:70%;background-color:#FFFF00;float:left; display:inline" > |
| + | </div> |
| + | </div> |
| + | </div> |
| + | |
| + | </div> |
| + | |
| + | |
| + | |
| + | |
| | | |
- | // iPad
| |
- | var isiPad = navigator.userAgent.match(/iPad/i) != null;
| |
- | if (isiPad) $('#menu ul').addClass('no-transition');
| |
- | });
| |
- | </script>
| |
| | | |
| </body> | | </body> |
| </html> | | </html> |