?? css0306.htm
字號(hào):
<html>
<head>
<title>洪恩在線 - CSS教程</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pub/css/home.css">
<link rel="stylesheet" href="/pc/homepage/homepage.css">
<meta name="keywords" content="電腦樂園,電腦,樂園,交互教程,交互,教程,教育">
</head>
<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">
<!--頂部開始-->
<script language="Javascript" src="/pub/js/head.js"></script>
<!--頂部結(jié)束-->
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#FF9966">當(dāng)前位置</font>:<a href="/default.htm" class="under">洪恩在線</a>
-> <a href="/pc/index.htm" class="under">電腦樂園</a> -> CSS教程</td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
<tr>
<td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" class="p1" height="123">
<br>
<table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" height="20">
<tr bgcolor="000099" valign="middle">
<td width="115" align="center" class="p2"><b><font color="#FFFFFF">CSS教程</font></b></td>
<td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
<td height="20" bgcolor="#E8E8E8" width="17"> </td>
</tr>
</table>
<p class="p1" style="line-height:17pt" align="left"> <font color="#CC3399">→</font>
<a href="css0101.htm">CSS快速入門</a><br>
<font color="#CC3399">→</font> <a href="css0201.htm">怎樣編寫CSS</a><br>
<font color="#CC3399">→</font> CSS屬性<br>
1.<a href="css0301.htm">字體屬性</a><br>
2.<a href="css0302.htm">顏色和背景屬性</a><br>
3.<a href="css0303.htm">文本屬性</a><br>
4.“容器”屬性<br>
※<a href="css0305.htm">邊距屬性</a><br>
※填充距屬性<br>
※<a href="css0307.htm">邊框?qū)傩?lt;/a> <br>
※<a href="css0308.htm">圖文混排</a> <br>
5.<a href="css0309.htm">分級(jí)屬性</a><br>
6.<a href="css0310.htm">鼠標(biāo)屬性</a><br>
<font color="#CC3399">→</font> <a href="css0401.htm">CSS定位</a><br>
<font color="#CC3399">→</font> <a href="css0501.htm">CSS濾鏡</a> <br>
<br>
</p>
<p align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_css target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請(qǐng)您留言" border="0"><br> 談?wù)勀目捶?lt;/a>
<br>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_css.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發(fā)言")
</script>
</p>
<p class="p1" style="line-height:17pt" align="left"> </p>
</td>
<td width=1 bgcolor=#0586D7 height="123"><img src="/pc/img/blank.gif" width="1" height="1">
</td><td width=15 background="/pc/img/line.gif"><p> </p></td>
<td valign="top" background="/pc/img/line.gif" width="584" height="123" class="p2">
<p align="center"><b><span class="p3"><br>
<font color="#3366CC">三、CSS屬性</font></span></b></p>
<p align="right" class="p1"> </p>
<hr color=blue size=1>
<p class="p2" style="line-height:17pt"> <font color="#CC3399">※填充距屬性</font></p>
<p class="p2" style="line-height:17pt"> 本節(jié)我將向您介紹填充距屬性。我們先來(lái)看一下填充距的屬性列表:</p>
<p align="center"><img src="img/css060.gif" width="390" height="113" border="0" alt="填充距屬性"></p>
<p class="p2" style="line-height:17pt"> 首先我們得先了解什么叫填充距,它與邊距有什么差別呢?填充距指的是文本邊框與文本之間的距離。<br>
這樣講是不是有些難懂,由于填充距屬性與margin一樣,都有一個(gè)一次定義的屬性:padding,所以我們舉個(gè)例子,看一下到底什么叫填充距,請(qǐng)看下圖:</p>
<p align="center"><img src="img/css013.gif" width="447" height="381" border="0" alt="填充距屬性例子"></p>
<p class="p2" style="line-height:17pt"> 我們看到上圖中紅框圈住的地方就是填充距起作用的部分。實(shí)際上上圖的效果只是在上一節(jié)例子的<head>中把下面這段代碼加入到Body定義的margin后面:
</p>
<p class="p2"> <font color="#006666">padding:1em
2em 3em 4em</font></p>
<p class="p2" style="line-height:17pt"> 從上可以看出,紅框標(biāo)記外的部分屬于margin屬性在起作用。<br>
下一節(jié)將向您介紹邊框?qū)傩浴?</p>
<hr color=blue size=1>
<p class="p1" align="right"><a href="css0305.htm">上一節(jié)</a> <a href="css0307.htm">下一節(jié)</a> </p>
<p> </p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_css target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請(qǐng)您留言" border="0"><br> 談?wù)勀目捶?lt;/a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_css.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發(fā)言")
</script>
</p>
<p> </p></td><td width=15 background="/pc/img/line.gif"><p> </p></td>
</tr>
</table>
<!--底部開始-->
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部結(jié)束-->
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -