Francischlin (Talk | contribs) |
Francischlin (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | <html lang="en"> | |
− | <html> | + | |
<head> | <head> | ||
<meta charset="UTF-8"> | <meta charset="UTF-8"> | ||
− | <title> | + | <title>navigation</title> |
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
− | < | + | <meta name="description" content="DESCRIPTION"> |
− | < | + | <link rel="stylesheet" href="navigation.css" type="text/css"> |
<style> | <style> | ||
− | + | #nav, | |
− | + | #nav ul, | |
− | + | #nav li, | |
− | + | #nav a { | |
− | + | border: none; | |
− | + | line-height: 1; | |
− | + | margin: 0; | |
+ | padding: 0; | ||
+ | } | ||
− | + | #nav { | |
− | + | height: 37px; | |
− | + | display: block; | |
− | + | width: auto; | |
− | + | margin: 0; | |
− | + | padding: 0; | |
+ | } | ||
− | |||
− | |||
− | |||
− | + | #nav>ul { | |
− | + | list-style: inside none; | |
− | + | margin: 0; | |
+ | padding: 0; | ||
+ | } | ||
− | + | #nav>ul>li { | |
− | + | list-style: inside none; | |
− | + | float: right; | |
+ | right: 5%; | ||
+ | display: inline-block; | ||
+ | position: relative; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
− | + | #nav.align-center>ul { | |
− | + | text-align: center; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | #nav.align-center>ul>li { | |
− | + | float: none; | |
− | + | margin-left: -3px; | |
+ | } | ||
− | + | #nav.align-center ul ul { | |
− | + | text-align: left; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | #nav.align-center>ul>li:first-child>a { | |
− | + | border-radius: 0; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | #nav>ul>li>a { | |
+ | outline: none; | ||
+ | display: block; | ||
+ | position: relative; | ||
+ | text-align: center; | ||
+ | text-decoration: none; | ||
+ | font-weight: 700; | ||
+ | font-size: 13px; | ||
+ | font-family: Arial, Helvetica, sans-serif; | ||
+ | color: #000000; | ||
+ | padding: 12px 20px; | ||
+ | } | ||
− | + | #nav>ul>li:first-child>a { | |
− | + | border-radius: 0; | |
− | + | } | |
+ | #nav>ul>li>a:after { | ||
+ | content: ""; | ||
+ | position: absolute; | ||
+ | top: -1px; | ||
+ | bottom: -1px; | ||
+ | right: -2px; | ||
+ | z-index: 99; | ||
+ | } | ||
+ | |||
+ | #nav ul li.has-sub:hover>a:after { | ||
+ | top: 0; | ||
+ | bottom: 0; | ||
+ | } | ||
+ | |||
+ | #nav>ul>li.has-sub>a:before { | ||
+ | content: ""; | ||
+ | position: absolute; | ||
+ | top: 18px; | ||
+ | right: 6px; | ||
+ | border: 5px solid transparent; | ||
+ | border-top: 5px solid #000000; | ||
+ | } | ||
+ | |||
+ | #nav>ul>li.has-sub:hover>a:before { | ||
+ | top: 19px; | ||
+ | } | ||
+ | |||
+ | #nav>ul>li.has-sub:hover>a { | ||
+ | padding-bottom: 14px; | ||
+ | z-index: 999; | ||
+ | border-color: #3f3f3f; | ||
+ | } | ||
+ | |||
+ | #nav ul li.has-sub:hover>ul, | ||
+ | #nav ul li.has-sub:hover>div { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | #nav>ul>li.has-sub>a:hover, | ||
+ | #nav>ul>li.has-sub:hover>a { | ||
+ | background: #D1D1D1; | ||
+ | border-color: #D1D1D1; | ||
+ | } | ||
+ | |||
+ | #nav ul li>ul, | ||
+ | #nav ul li>div { | ||
+ | display: none; | ||
+ | width: auto; | ||
+ | position: absolute; | ||
+ | top: 38px; | ||
+ | background: #D1D1D1; | ||
+ | border-radius: 0px 5px 5px 5px; | ||
+ | /*第一層navigation圖形*/ | ||
+ | z-index: 999; | ||
+ | padding: 10px 0; | ||
+ | } | ||
+ | |||
+ | #nav ul li>ul { | ||
+ | width: 140px; | ||
+ | } | ||
+ | |||
+ | #nav ul ul ul { | ||
+ | position: absolute; | ||
+ | } | ||
+ | |||
+ | #nav ul ul li:hover>ul { | ||
+ | left: -100%; | ||
+ | top: -10px; | ||
+ | border-radius: 5px; | ||
+ | } | ||
+ | |||
+ | #nav ul li>ul li { | ||
+ | display: block; | ||
+ | list-style: inside none; | ||
+ | position: relative; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | |||
+ | #nav ul li>ul li a { | ||
+ | outline: none; | ||
+ | display: block; | ||
+ | position: relative; | ||
+ | font: 10pt Arial, Helvetica, sans-serif; | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | margin: 0; | ||
+ | padding: 8px 20px; | ||
+ | } | ||
+ | |||
+ | #nav, | ||
+ | #nav ul ul>li:hover>a, | ||
+ | #nav ul ul li a:hover { | ||
+ | background: #ffffff; | ||
+ | background: -moz-linear-gradient(top, #ffffff 0%, #ffffff 100%); | ||
+ | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #ffffff)); | ||
+ | background: -webkit-linear-gradient(top, #ffffff 0%, #ffffff 100%); | ||
+ | background: -o-linear-gradient(top, #ffffff 0%, #ffffff 100%); | ||
+ | background: -ms-linear-gradient(top, #ffffff 0%, #ffffff 100%); | ||
+ | background: linear-gradient(top, #ffffff 0%, #ffffff 100%); | ||
+ | } | ||
+ | |||
+ | #nav>ul>li>a:hover { | ||
+ | background: #080808; | ||
+ | color: #ffffff; | ||
+ | } | ||
+ | |||
+ | #nav ul ul a:hover { | ||
+ | color: #000000; | ||
+ | } | ||
+ | |||
+ | #nav>ul>li.has-sub>a:hover:before { | ||
+ | border-top: 5px solid #000000; | ||
+ | } | ||
+ | |||
+ | */ | ||
</style> | </style> | ||
</head> | </head> | ||
<body> | <body> | ||
− | <ul class=" | + | <div id="nav"> |
− | + | <ul> | |
− | + | <li class="active has-sub"><a href="#"><span>Team</span></a> | |
− | < | + | <ul> |
− | < | + | <li><a href="#"><span>Members</span></a></li> |
− | < | + | <li><a href="#"><span>Instructors</span></a></li> |
− | < | + | <li class="has-sub"><a href="#">Documents</a> |
− | < | + | <ul> |
− | < | + | <li><a href="#"><span>Protocal</span></a></li> |
− | < | + | <li><a href="#"><span>Notebook</span></a></li> |
− | < | + | </ul> |
− | </ | + | </li> |
− | </ | + | </ul> |
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Achievement</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Medal Criteria</span></a></li> | ||
+ | <li><a href="#"><span>Awards</span></a></li> | ||
+ | <li><a href="#"><span>Attribution</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Human Practice</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Study</span></a></li> | ||
+ | <li><a href="#"><span>Education</span></a></li> | ||
+ | <li><a href="#"><span>Collaboration</span></a></li> | ||
+ | <li><a href="#"><span>Activity</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Parts</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Basic Parts</span></a></li> | ||
+ | <li><a href="#"><span>Composite Parts</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Validation</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Peptide Experiment</span></a></li> | ||
+ | <li><a href="#"><span>Fungal Experiment</span></a></li> | ||
+ | <li><a href="#"><span>Plant</span></a></li> | ||
+ | <li><a href="#"><span>Result</span></a></li> | ||
+ | <li><a href="#"><span>Safety</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Modeling</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Parabase Modeling</span></a></li> | ||
+ | <li><a href="#"><span>IoT Prediction Modeling</span></a></li> | ||
+ | <li><a href="#"><span>Results</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="active has-sub"><a href="#"><span>Project</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Description</span></a></li> | ||
+ | <li class="has-sub"><a href="#"><span>Parabase</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>Data Aggregation</span></a></li> | ||
+ | <li><a href="#"><span>Peptide Prediction</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="has-sub"><a href="#"><span>IoT</span></a> | ||
+ | <ul> | ||
+ | <li><a href="#"><span>IoT Talk</span></a></li> | ||
+ | <li><a href="#"><span>Timing Prediction</span></a></li> | ||
+ | <li><a href="#"><span>Hardware</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="#"><span>Biobricks & Validation</span></a></li> | ||
+ | <li><a href="#"><span>Demonstration</span></a></li> | ||
+ | <li><a href="#"><span>Improvement</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ul> | ||
+ | |||
+ | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 08:29, 14 September 2017