網(wǎng)頁的本質(zhì)就是超級文本標(biāo)記語言,通過結(jié)合使用其他的Web技術(shù)(如:腳本語言、公共網(wǎng)關(guān)接口、組件等),可以創(chuàng)造出功能強(qiáng)大的網(wǎng)頁。因而,超級文本標(biāo)記語言是萬維網(wǎng)(Web)編程的基礎(chǔ),也就是說萬維網(wǎng)是建立在超文本基礎(chǔ)之上的。超級文本標(biāo)記語言之所以稱為超文本標(biāo)記語言,是因為文本中包含了所謂“超級鏈接”點(diǎn)。 【實(shí)例介紹】 css border-collapse屬性(表格邊框合并) border-collapse屬性設(shè)置表格的邊框是被合并為一個單一的邊框,還是分別有各自的邊框。 【基本語法】 border-collapse :separate|collapse 【語法介紹】 separate:默認(rèn)值。邊框分開,不合并。 collapse:邊框合并。即如果相鄰,則共用同一個邊框。 【實(shí)例代碼】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
</head>
</head>
<body>
<table width="300" border="1" cellpadding="0" cellspacing="0" bordercolor="#FF0000">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
<table width="300" border="1" cellpadding="0" cellspacing="0"
bordercolor="#FF0000" style="border-collapse:collapse;">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="150" > </td>
<td width="150" > </td>
</tr>
</table>
</body>
</html>
【代碼分析】 在代碼中,加粗部分是應(yīng)用邊框合并屬性,如圖1 5.1下面的表格所示,上面的表格是沒有 應(yīng)用合并屬性的效果。 
【素材及源碼下載】
請點(diǎn)擊:border-collapse屬性(表格邊框合并) 下載本實(shí)例相關(guān)素材及源碼
網(wǎng)站建設(shè)是一個廣義的術(shù)語,涵蓋了許多不同的技能和學(xué)科中所使用的生產(chǎn)和維護(hù)的網(wǎng)站。 |