【HTML+CSS】页内侧边导航栏 页内导航

it2023-01-23  56

页内侧边导航栏 页内导航

源码HTML部分CSS部分 效果

源码

HTML部分

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="CSS/subnav.css" /> </head> <body> <!-- 导航栏部分 --> <div class="control"> <div class="left"> <div class="subNav"> <div class="part1 part"><a href="#part1">part1</a></div> <div class="part2 part"><a href="#part2">part2</a></div> <div class="part3 part"><a href="#part3">part3</a></div> <div class="part4 part"><a href="#part4">part4</a></div> </div> </div> <!-- 正文部分 --> <div class="content"> <a name="part1"></a> <div class="container1"> <div class="text1 text"> <div class="title1 title">title</div> Doxycycline (doxycycline hyclate, doxycycline hydrochloride or Dox), a synthetic tetracycline (Tc) derivative, is the effector molecule for Clontech's Tet-On® and Tet-Off® Inducible Expression Systems. Dox can be used at 100-fold lower concentrations than Tc, yielding inducing concentrations ranging from 1ng/ml to 1 µg/ml. In the Tet-On System, addition of Dox to culture medium induces a conformational change in the transactivator which allows it to bind to tet operator sequences located in the inducible promoter. This results in transcriptional activation of the gene of interest. In the Tet-Off System, removal of Dox from culture medium induces binding of the transactivator, resulting in transcription of the gene of interest. </div> </div> <a name="part2"></a> <div class="container2"> <div class="text2 text"> <div class="title2 title">title</div> Doxycycline (doxycycline hyclate, doxycycline hydrochloride or Dox), a synthetic tetracycline (Tc) derivative, is the effector molecule for Clontech's Tet-On® and Tet-Off® Inducible Expression Systems. Dox can be used at 100-fold lower concentrations than Tc, yielding inducing concentrations ranging from 1ng/ml to 1 µg/ml. In the Tet-On System, addition of Dox to culture medium induces a conformational change in the transactivator which allows it to bind to tet operator sequences located in the inducible promoter. This results in transcriptional activation of the gene of interest. In the Tet-Off System, removal of Dox from culture medium induces binding of the transactivator, resulting in transcription of the gene of interest. </div> </div> <a name="part3"></a> <div class="container3"> <div class="text3 text"> <div class="title3 title">title</div> Doxycycline (doxycycline hyclate, doxycycline hydrochloride or Dox), a synthetic tetracycline (Tc) derivative, is the effector molecule for Clontech's Tet-On® and Tet-Off® Inducible Expression Systems. Dox can be used at 100-fold lower concentrations than Tc, yielding inducing concentrations ranging from 1ng/ml to 1 µg/ml. In the Tet-On System, addition of Dox to culture medium induces a conformational change in the transactivator which allows it to bind to tet operator sequences located in the inducible promoter. This results in transcriptional activation of the gene of interest. In the Tet-Off System, removal of Dox from culture medium induces binding of the transactivator, resulting in transcription of the gene of interest. </div> </div> <a name="part4"></a> <div class="container4"> <div class="text4 text"> <div class="title4 title">title</div> Doxycycline (doxycycline hyclate, doxycycline hydrochloride or Dox), a synthetic tetracycline (Tc) derivative, is the effector molecule for Clontech's Tet-On® and Tet-Off® Inducible Expression Systems. Dox can be used at 100-fold lower concentrations than Tc, yielding inducing concentrations ranging from 1ng/ml to 1 µg/ml. In the Tet-On System, addition of Dox to culture medium induces a conformational change in the transactivator which allows it to bind to tet operator sequences located in the inducible promoter. This results in transcriptional activation of the gene of interest. In the Tet-Off System, removal of Dox from culture medium induces binding of the transactivator, resulting in transcription of the gene of interest. </div> </div> </div> </div> </body> </html>

CSS部分

*{ padding: 0; margin: 0; } body{ background: #eeeeee; } .control{ width: 1075px; height: auto; margin: 0 auto; } .left,.content{ height: auto; margin: 20px 5px; } .left{ width: 200px; display: inline-block; vertical-align: top; } .subNav{ height: auto; background-color: white; padding: 10px; width: 180px; position: fixed; } .content{ width: 850px; background-color: white; display: inline-block; } .part{ text-align: center; line-height: 60px; border-bottom: 1px solid #d9d9d9; border-radius: 5px; color: #000000; } a{ text-decoration: none; color:black; display: block; } .part:hover{ background: #eeeeee; cursor: pointer; } .part4{ border: none; } .text{ line-height: 30px; width: 80%; margin: 25px auto; height: auto; min-height: 500px; } .container2,.container4{ background: #e5e5e5; } .title{ line-height: 40px; } .container2,.container4{ overflow: hidden; }

效果

最新回复(0)