php課程的第二天

來源:互聯網
上載者:User

標籤:border   順時針   正方形   課程   元素php   

   今天是學習php的第二天。開始接觸一些簡單的指令。今天的學習分為兩部分。一開始是複習昨天所學,然後有稍微加了些新東西。

   首先是定義上的東西。

   id(#)優先,class表示一類,id表示個體。一般情況下,clear採用both。

clear:規定浮動元素 ;border邊框 ; margin外邊距,數值是從上開始,順時針轉動。若一邊沒有給出,則會給出對邊的數值,padding內邊距。

   下面進入操作階段。我用的是用margin製作置中的正方形。



<html>

<meta charset="utf-8">


<head>


<title></title>

<style>

#five{width: 200px;height: 200px;margin: 0  auto}

.a{width: 100px;height: 100px;}

#one{background-color: #00FF00;float: left;}

#two{background-color: #0000FF;float: left;}

#three{background-color: #13912b;float: left;}

#four{background-color: #FF0000;float: left;}


</style>


</head>

<body>

<div id ="five">

<div class="a"id="four"></div>

<div class="a" id ="one"></div>

<div class="a" id ="two"></div>

<div class="a" id ="three"></div>


</div>

</body>

</html>




   然後是幾個新的東西。

   index網站的預設首頁。h1到h6是標題標籤,控制標題大小,數字越大字型越大。color預設為字型顏色。p代表段落。br換列標籤.text-indent字元縮排,正值左,負值右。空格用&nbsp;表示。maigin圓角,數值過小會變為圓角矩形。

   然後是用這些指令做一個簡單地文章。出於時間關係,文字我是隨便打的,請見諒。

   代碼如下



html>

<head>

<title></title>

<style>

h2{background-color: red;color:blue;text-indent:300px;font-size: 50px;}

p{color: green;font-size: 20px;}

</style>


</head>

<body>

<h2>江湖夜雨十年燈</h2>

<p>&nbsp;&nbsp;&nbsp;飛機事件剛剛是那幾個發的就是那個就是儘快發過節費可感覺到按時


間發貨的師傅說你看見粉絲盾生死劫你回複山東哦非讓你還認識看手機官方</p>

<p>&nbsp;&nbsp;&nbsp;啊速度和奇偶覅驕傲飛灑面積佛科撒酒瘋皮哦撒酒瘋啊審批的空間披


薩房間愛瘋放假<br>阿斯頓福建哦飛灑姐姐啊地方吉薩披肩發賽的吉薩空間的坡度薩科技阿


的勢力將暗示都</p>

</body>

</html>




   這些就是學習php第二天所學內容,我會繼續努力!

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.