總結一週記下的標籤,和代碼:
加粗文體;<b>xxxxxx</b> 斜體;<i>xxxxx</i> <per></per>;定義預格式文本
<sup></sup>;上斜線 <sub></sub>;下斜線
<addr title="解釋">要解釋的詞語</addr> <address>地址</address> 定義地址標籤
<text-decration>去下劃線</text-decration>
<blockquote cite="網址"></blockquote> 定義長的引用
<table> <tr> <td></td> </tr> </table> 表格格式
colspan 合併單元格橫向
marigin-top:300px調整上面距離。
marigin-right 右,left 左,bottom下
margin外邊距, padding內邊距,
<meta charset="utf8">清楚亂碼
marigin: 0 auto; 居中
border-redius: 半徑,邊緣。
<h1>asasd</h1> h1是字體。h1-h6
<p></P>是段落
<img src="D:/D.JPG">調入圖片
{ . / . 是當前我所在的目錄 代表一個文件夾
當圖片和網頁用在一個文件夾下。用這個}
font-size調字體大小 段落P里加<strong>
列表分爲 有序,無序,自定義。,
<ul> 無序列表,<li>是內容,有序的,<ol>
list-style none 去掉點小園點。
float:漂浮
line-height-行高 行間距,
text-align:center 字體垂直居中。
marg不能居中的時候,注意width的設置寬度
li:hover {background-color: #123213}鼠標發光
在頭部裏,必須新建。
<a href=></a>放在身體裏,鏈接裏,必須有字
target="_blank"跳轉新網頁,保留原來網頁,前面得有空格
text-decoration:none: 取消文字裝飾
bgcolor 添加背景色,可以加在,身體裏。
background—image:url(圖片地址)
背景圖片重複模式background-repeat:(no-repeat不重複) (repeat-x/y橫向/縱向重複)
background-size:調整背景圖片大小 background-position 調整圖片位置 可移動
表格製作::::
<!DOCTYPE html>
<html>
<head>
<title>show time</title>
<style>
#c #b{
background-color: red
}
.a{
background-image: url(D:/D/D.JPG);
}
</style>
</head>
<body>
<table border="2px" id="c">
<caption>徵婚廣告</caption>
<tr id="b">
<th>姓名</th>
<th>年齡</th>
<th>性別</th>
</tr>
<tr class="a">
<td>王琛</td>
<td>49</td>
<td>壯漢</td>
</tr>
<tr class="a">
<td>某東</td>
<td>69</td>
<td>壯漢</td>
</tr>
</table>
</body>
</html>