學習PHP課程的第三天

來源:互聯網
上載者:User

標籤:製作網頁   課程   zhiye   

2016年11月9日,星期三

 

    一、首次利用<ul>(無序列表),<ol>(有序列表)製作網頁篩選欄:


     示範圖,<ul>(無序列表)效果:

    650) this.width=650;" src="http://s5.51cto.com/wyfs02/M00/89/FB/wKioL1gjIfmzucQjAADJKSWB3VI699.png-wh_500x0-wm_3-wmp_4-s_3379592295.png" title="2016-11-09_211536.png" alt="wKioL1gjIfmzucQjAADJKSWB3VI699.png-wh_50" />


    示範圖,<ol>(有序列表)效果:

    650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/89/FF/wKiom1gjInnBswB7AADJ1yq2wp0218.png-wh_500x0-wm_3-wmp_4-s_4206726641.png" title="2016-11-09_211800.png" alt="wKiom1gjInnBswB7AADJ1yq2wp0218.png-wh_50" />


    二、利用了line-height(行間距),text-align(文本的水平對齊)等功能製作出完成圖,

編碼如下:

            

<!DOCTYPE html>

<html>

<head>

<meta charset="utf8">


<title></title>

</head>

<style type="text/css">

body,ul{

margin: 0px;

padding: 0px;

}


#baohan{

width: 100%

height:60px;

background-color: red;

}




#zhiye{

height: 50px;

width: 1500px;

margin: 0 auto;

background-color: red;}


li{

width: 70px;

height: 50px;

background-color: red;

float: left;

list-style: none;

text-align: center;

line-height: 50px;

margin-right: 2px;}


li:hover{background-color: orange;}


</style>





<body>

<div id="baohan">

<ol id="zhiye">

<li>戰士</li>

<li>聖騎士</li>

<li>法師</li>

<li>獵人</li>

<li>牧師</li>

<li>薩滿</li>

<li>死亡騎士</li>

<li>德魯伊</li>

<li>惡魔獵手</li>

<li>術士</li>

<li>武僧</li>

</ol>

</div>





</body>

</html>


最後的完成圖,如下:

    

    650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/89/FB/wKioL1gjJE7wWkAGAAJYmov8Bng872.png-wh_500x0-wm_3-wmp_4-s_2357066140.png" title="2016-11-09_211249.png" alt="wKioL1gjJE7wWkAGAAJYmov8Bng872.png-wh_50" />


本文出自 “12244251” 部落格,謝絕轉載!

學習PHP課程的第三天

聯繫我們

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