4、網頁製作Dreamweaver(樣式表CSS),dreamweavercss

來源:互聯網
上載者:User

4、網頁製作Dreamweaver(樣式表CSS),dreamweavercss
樣式表style

寫在body裡面/head裡面都可以

 

1、head裡面的寫法ex.(樣式表選取器)

<head>

<style type="text/css">

body(簡單設定)

{

     background-color:#CC0;

     background-image:url(../../%E5%BE%AE%E4%BF%A1%E4%BA%8C%E7%BB%B4%E7%A0%81.jpg);

     background-repeat:no-repeat;

}

table

{

     background-image:url(../../360%E6%88%AA%E5%9B%BE20141116110142765.jpg);

     background-repeat:repeat;

}

.自訂名字(再到其他的標籤中使用,如<body  class=” 自訂名字”>

{

     background-image:url(../../%E5%BE%AE%E4%BF%A1%E4%BA%8C%E7%BB%B4%E7%A0%81.jpg);

     background-repeat:no-repeat;

     background-size:contain

}

table .自訂名(只能在table的標籤內使用,table和“.自訂名”之間有一個空格)

{

     color:#3F0;

}

.自訂名 font(自動尋找在“.自訂名”後存在font標籤的部分並賦給它樣式)

{

     font:"華文彩雲";

}

#textfield(在#後加上ID,可以對ID所在的style單獨設定)

{

     border:dotted

}

</style>

</head>

 

 

2、body中的寫法:

<body class=”自訂名字”>

         <table class=”自訂名”>

                   <tr class=”自訂名”>

                   <td>

<font>

         <input type="text" name="textfield" id="textfield" />

</font>

                   </td>

</tr>

         </table>

</body>

 

 

匯入css方法:

 

1、在html檔案中:<link rel=”stylesheet” href=”xxx.css”>

2、然後再將其他css附加:@import url(“xxx.css”),

 

選取器優先順序:

  ID>class>標籤

 

連結的style

  a:link 超連結被點前狀態

  a:visited 超連結點擊後狀態

  a:hover 懸停在超連結時

  a:active 點擊超連結時

在定義這些狀態時,有一個順序l v h a

css濾鏡

聯繫我們

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