日韩大片在线永久免费观看网站,久久欧美国产伦子伦精品,国产一区二区三区不卡在线观看 http://m.mxio.cn 傳播先進設計理念 推動原創設計發展 Wed, 08 Mar 2006 14:35:00 +0000 zh-Hans hourly 1 https://wordpress.org/?v=6.9.1 簡單實用的網頁表格特效 http://m.mxio.cn/4817.html http://m.mxio.cn/4817.html#respond Wed, 08 Mar 2006 14:35:00 +0000

簡單實用的網頁表格特效


  在我們制作主頁的過程中,用到表格的地方非常多,靈活運用表格技巧可以為我們的網頁增色不少,這里我就詳細介紹幾中特效表格的制作方法。

  一、彩色虛線表格


<style type=”text/css”>
<!–
.tab1 {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: dotted;
border-right-style: dotted;
border-bottom-style: dotted;
border-left-style: dotted;
border-top-color: #00CC66;
border-right-color: #0099CC;
border-bottom-color: #FF0000;
border-left-color: #6699FF;
}
–>
</style>
<table width=”200″ border=”0″ cellpadding=”2″ cellspacing=”2″ class=”tab1″
<tr>
<td><div align=”center”>虛</div></td>
<td><div align=”center”>線</div></td>
</tr>
<tr>
<td><div align=”center”>表</div></td>
<td><div align=”center”>格</div></td>
</tr>
</table>

  二、鼠標指向單元格變色
 
 
 

onmouseout=”this.style.backgroundColor=”” 鼠標離開效果onmouseover=”this.style.backgroundColor=’#FFcccc'”鼠標放上去的效果,
可以修改#FFcccc的值來改變顏色

<table width=”200″ border=”1″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td onmouseout=”this.style.backgroundColor=”” onmouseover=”this.style.backgroundColor=’#FFcccc'”> </td>
</tr>
<tr>
<td onmouseout=”this.style.backgroundColor=”” onmouseover=”this.style.backgroundColor=’#FFccaa'”> </td>
</tr>
</table>
   .bg { FILTER: Alpha(Opacity=20); BACKGROUND-COLOR: #66ccff } .tab1 { BORDER-RIGHT: #0099cc thin dotted; BORDER-TOP: #00cc66 thin dotted; BORDER-LEFT: #6699ff thin dotted; BORDER-BOTTOM: #ff0000 thin dotted }  

  三、立體表格
 
立體表格

<table border=”1″ bordercolorlight=”#ffffff” bordercolordark=”#ffffff” width=”200″ cellpadding=”0″ cellspacing=”0″>
<tr align=”center”>
<td width=”86″
bordercolorlight=”#000000″ bordercolordark=”#eeeeee” bgcolor=”#B7B7B7″ >立體</td>
<td width=”108″
bordercolorlight=”#000000″ bordercolordark=”#eeeeee” bgcolor=”#B7B7B7″ >表格</td>
</tr>
</table>

  四、表格嵌套

  1、利用表格的間距來做嵌套

<table width=”200″ border=”1″ cellspacing=”4″ cellpadding=”0″>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
主要是用到間距 cellspacing=”4″

   

  2、充分利用根據表格對齊的方式

  這里主要是將第一個表格居左,第二個表格居右,第三個表格居中。這樣當你隨意調整里面三個表格大小的時候,他們的間距將保持不變,非常方便。

 
 
 

<table width=”200″ border=”1″ cellpadding=”0″ cellspacing=”0″ bordercolor=”#FF0000″>
<tr>
<td><table width=”60″ border=”1″ align=”left” cellpadding=”0″ cellspacing=”0″>
<tr>
<td> </td>
</tr>
</table>
<table width=”60″ border=”1″ align=”right” cellpadding=”0″ cellspacing=”0″>
<tr>
<td> </td>
</tr>
</table>
<table width=”80″ border=”1″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
   .bg { FILTER: Alpha(Opacity=20); BACKGROUND-COLOR: #66ccff } .tab1 { BORDER-RIGHT: #0099cc thin dotted; BORDER-TOP: #00cc66 thin dotted; BORDER-LEFT: #6699ff thin dotted; BORDER-BOTTOM: #ff0000 thin dotted }    五、半透明表格

透明

  這里主要是用到了CSS濾鏡filter: Alpha(Opacity=20)。

<style type=”text/css”>
<!–
.bg {
background-color: #66CCFF;
filter: Alpha(Opacity=20);
}
–>
<table width=”200″ border=”0″ cellpadding=”0″ cellspacing=”0″ class=”bg”>
<tr>
<td><div align=”center”>半</div></td>
<td><div align=”center”>透明</div></td>
</tr>
<tr>
<td><div align=”center”>表</div></td>
<td><div align=”center”>格</div></td>
</tr>
</table>

  六、陰影表格

111222333

  這里主要用到了CSS濾鏡style=”filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10″

<div style=”filter:shadow(color=#cccccc,direction=120);width:300;padding-right:10;padding-bottom:10″>
<table width=300 border=1 bgcolor=#EAEAEA

<tr><td width=”93″>111</td><td width=”91″>222</td><td width=”94″>333</td></tr>
</table>
</div>

  附:插入CSS樣式的方法(我們這里用半透明表格來做說明)
  第一種方法是定義一個CSS名稱。
  比如
<style type=”text/css”>
<!–
.bg {
background-color: #66CCFF;
filter: Alpha(Opacity=20);
}
–>
  元素需要用到CSS的時候,比如表格,定義一個CLASS就可以了,如
<table width=”200″ border=”0″ cellpadding=”0″ cellspacing=”0″ class=”bg”>

  第二種是直接在你需要用到CSS元素的地方插入相關代碼,style=””如:
<table width=”201″ border=”1″ style=”filter: Alpha(Opacity=20);background-color: #66CCFF;”>

  關于CSS的具體使用就不在這里做具體介紹了,大家可以參考天極“設計在線”CSS樣式表中的相關文章。

]]>
http://m.mxio.cn/4817.html/feed 0
主站蜘蛛池模板: 国产男生午夜福利免费网站| 成人做受视频试看60秒| 欧洲成人在线观看| 国产精一区二区黑人巨大| 又湿又紧又大又爽又a视频| 日韩乱码人妻无码中文字幕视频| 亚洲爆乳精品无码一区二区| 亚洲2019av无码网站在线| 国产精品中文字幕观看| 日韩精品区一区二区三vr| 亚洲日韩中文字幕在线不卡最新| 少妇熟女久久综合网色欲| 亚洲色成人一区二区三区小说| 久久伊人五月丁香狠狠色| 男女性杂交内射女bbwxz| 精品无码av无码专区| 国产在线日韩拍揄自揄视频| 综合偷自拍亚洲乱中文字幕| 国产毛a片啊久久久久久保和丸| 亚洲欧洲巨乳清纯| 麻豆亚州无矿码专区视频| 色琪琪丁香婷婷综合久久| 亚洲欧美丝袜 动漫专区| 精品一区二区成人码动漫| 九九在线中文字幕无码| 亚洲精品无码av天堂| 欧美和黑人xxxx猛交视频| 亚洲 欧美 中文 日韩aⅴ| 国产成人av大片在线播放| 国产美女免费永久无遮挡| 欧洲极品少妇| 国色精品卡一卡2卡3卡4卡在线| 中文字幕结果国产精品| 久久中文精品无码中文字幕下载| 中日韩av亚洲aⅴ高潮无码| 亚洲愉拍一区二区三区| 伊人色综合网久久天天| 欧美高潮喷水大叫| 亚洲高清国产拍精品26u| 国产激情婷婷丁香五月天| аⅴ资源中文在线天堂|