php實戰第十九天_PHP教程

來源:互聯網
上載者:User
今天涉獵了 ps,以及做了一個頂部導航條固定,下面給一個布局.利用得是 position:fixed


[html]



無標題文檔










  • 首頁

  • 下載

  • 詞庫

  • 其他

  • 協助

  • 官方論壇









a

b

c

d

e

123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789







無標題文檔







  • 首頁

  • 下載

  • 詞庫

  • 其他

  • 協助

  • 官方論壇









a

b

c

d

e

123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789




css代碼


[css] @charset "utf-8";
/* CSS Document */
*{
margin:0px;
padding:0px;
font-size:14px;
}
body{
background-color:#ECECEC;
}
#head{
position:fixed;
top:0px;

background:#FAFAFA;

width:100%;
height:54px;

border-bottom: 1px solid #E8E8E8;
box-shadow: 0 1px 5px rgba(34, 25, 25, 0.2);
z-index:100;

}

#header{
margin:0 auto;

width:960px;
height:54px;
}
.nav{
float: left;
height: 54px;
width: auto;
}

.nav ul ,.nav li{
float: left;
list-style: none outside none;
}

li a{
padding: 0 15px;

color: #585858;
display: block;
line-height: 54px;

border-right: 1px solid #E8E8E8;
}


#main{
position:relative;
top:66px;

margin:0 auto;
padding:10px;

width:960px;

background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #C7C7C7;

}

@charset "utf-8";
/* CSS Document */
*{
margin:0px;
padding:0px;
font-size:14px;
}
body{
background-color:#ECECEC;
}
#head{
position:fixed;
top:0px;

background:#FAFAFA;

width:100%;
height:54px;

border-bottom: 1px solid #E8E8E8;
box-shadow: 0 1px 5px rgba(34, 25, 25, 0.2);
z-index:100;

}

#header{
margin:0 auto;

width:960px;
height:54px;
}
.nav{
float: left;
height: 54px;
width: auto;
}

.nav ul ,.nav li{
float: left;
list-style: none outside none;
}

li a{
padding: 0 15px;

color: #585858;
display: block;
line-height: 54px;

border-right: 1px solid #E8E8E8;
}


#main{
position:relative;
top:66px;

margin:0 auto;
padding:10px;

width:960px;

background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #C7C7C7;

}

http://www.bkjia.com/PHPjc/477332.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/477332.htmlTechArticle今天涉獵了 ps,以及做了一個頂部導航條固定,下面給一個布局.利用得是 position:fixed [html] !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.