網頁布局+下拉隱藏欄

來源:互聯網
上載者:User

標籤:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
<style>
*
{
margin:0px;
padding:0px;}
#a
{
width:100%;
height:80px;
position:relative;
border:1px solid red;
}
#logo
{
width:20%;
height:60px;
position:relative;
border:1px solid blue;
margin-top:10px;
margin-left:10%;}
#daohang
{
width:50%;
height:30px;
border:1px solid yellow;
position:relative;
left:40%;
top:-31px;}
.aa
{
width:17%;
height:24px;
background-color:#3F6;
position:relative;
float:left;
margin-left:2.5%;
margin-top:3px;
overflow:hidden;
transition:1s;
}
.aa:hover
{
background-color:#C0C;
overflow:visible;}
.bb
{
width:100%;
height:144px;
background-color:#3FC;
position:relative;
top:24px;
z-index:2;
box-shadow:#666 5px 5px 5px;}
#chaoda
{
width:80%;
height:1500px;
position:relative;
border:1px solid yellow;
left:10%;
margin-top:10px;}
#yihang1
{
width:29%;
height:300px;
border:1px solid gray;
position:relative;
left:3.25%;
top:10px;
}
#yihang2
{
width:29%;
height:300px;
border:1px solid green;
position:absolute;
left:35.5%;
top:10px;
}
#yihang3
{
width:29%;
height:300px;
border:1px solid black;
position:absolute;
left:67.75%;
top:10px;
}
#erhang1
{
width:43%;
height:200px;
border:1px solid orange;
position:relative;
margin-top:20px;
left:3.25%;}
#erhang2
{
width:47.25%;
height:200px;
border:1px solid red;
position:absolute;
margin-top:-202px;
left:49.6%;}
</style>
</head>

<body>
<div id="a">
<div id="logo"></div>
<div id="daohang">
<div class="aa">
<div class="bb"></div>
</div>
<div class="aa"><div class="bb"></div></div>
<div class="aa"><div class="bb"></div></div>
<div class="aa"><div class="bb"></div></div>
<div class="aa"><div class="bb"></div></div>
</div>
</div>

<div id="chaoda">
<div id="yihang1"></div>
<div id="yihang2"></div>
<div id="yihang3"></div>
<div id="erhang1"></div>
<div id="erhang2"></div>
</div>
</body>
</html>

網頁布局+下拉隱藏欄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.