日韩大片在线永久免费观看网站,久久欧美国产伦子伦精品,国产一区二区三区不卡在线观看 http://www.mxio.cn 傳播先進設計理念 推動原創設計發展 Wed, 08 Mar 2006 14:35:00 +0000 zh-Hans hourly 1 https://wordpress.org/?v=6.9.1 簡單實用的網頁表格特效 http://www.mxio.cn/4817.html http://www.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://www.mxio.cn/4817.html/feed 0
主站蜘蛛池模板: 国产肉丝袜视频在线观看| 人妻聚色窝窝人体www一区| 中国农村真卖bbwbbw| 国产男人天堂| 超清av在线播放不卡无码| 丰满少妇被猛烈进出69影院| av一本久道久久波多野结衣| 日本肉体xxxx裸体137大胆| 激情久久av一区二区三区| 高潮内射免费看片| 亚洲 欧美 唯美 国产 伦 综合| 日韩有码中文在线观看| 久久久www成人免费无遮挡大片 | 我要看www免费看插插视频| 秋霞无码久久一区二区| 亚洲精品国偷自产在线| 亚洲人成网亚洲欧洲无码| 秋霞久久久久久一区二区| 亚洲成在人天堂一区二区| 久久久中文字幕日本无吗| 麻豆文化传媒精品一区二区| 夜爽8888视频在线观看| 中年熟妇的大黑p| 男女免费观看在线爽爽爽视频| 国产 亚洲 制服 无码 中文| 色鬼7777久久| 免费国产在线精品一区不卡| 最新的国产成人精品2020| 国产黄a三级三级三级av在线看 | 日本熟妇色xxxxx欧美老妇| 西西人体44www高清大胆| 亚欧乱色精品免费观看| 天干夜天干天天天爽视频| 亚洲阿v天堂无码z2018| 狠狠躁夜夜躁无码中文字幕 | 校园春色~综合网| 国产剧情视频一区二区麻豆| 国产精品成人观看视频国产奇米 | 石原莉奈日韩一区二区三区| 国产人妻人伦精品| 99福利资源久久福利资源|