成人午夜激情影院,小视频免费在线观看,国产精品夜夜嗨,欧美日韩精品一区二区在线播放

當前位置:首頁>>軟件教程>>網頁制作>>新聞內容
簡單實用的網頁表格特效
作者: 發布時間:2003-10-7 14:49:12 文章來源:
  在我們制作主頁的過程中,用到表格的地方非常多,靈活運用表格技巧可以為我們的網頁增色不少,這里我就詳細介紹幾中特效表格的制作方法。

  一、彩色虛線表格


<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>
    三、立體表格
 
立體 表格

<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>
    五、半透明表格

透明

  這里主要是用到了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>

  六、陰影表格

111 222 333

  這里主要用到了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;">


最新更新
·如何去掉ECShop2.7中的Powered by ECSh
·在IE7下生成高質量CSS縮略圖
·解決Dreamweaver打開和關閉時出現JavaS
·影響搜索引擎排名的因素2009版
·IE6/IE7/IE8/Firefox/Chrome/Safari的C
·Flash對聯廣告及關閉按鈕制作方法
·Discuz! 7中如果設置帖子中顯示圖片而不
·5種方法立刻寫出更好的CSS代碼
·兼容IE和Firefox的按圖片寬度縮放的CSS
·兼容Firefox和IE瀏覽器的“加入收藏”代
相關信息
·如何在網頁中制作虛線表格
畫心
愚愛
偏愛
火苗
白狐
畫沙
犯錯
歌曲
傳奇
稻香
小酒窩
獅子座
小情歌
全是愛
棉花糖
海豚音
我相信
甩蔥歌
這叫愛
shero
走天涯
琉璃月
Nobody
我愛他
套馬桿
愛是你我
最后一次
少女時代
灰色頭像
斷橋殘雪
美了美了
狼的誘惑
我很快樂
星月神話
心痛2009
愛丫愛丫
半城煙沙
旗開得勝
郎的誘惑
愛情買賣
2010等你來
我叫小沈陽
i miss you
姑娘我愛你
我們都一樣
其實很寂寞
我愛雨夜花
變心的玫瑰
犀利哥之歌
你是我的眼
你是我的OK繃
貝多芬的悲傷
哥只是個傳說
丟了幸福的豬
找個人來愛我
要嫁就嫁灰太狼
如果這就是愛情
我們沒有在一起
寂寞在唱什么歌
斯琴高麗的傷心
別在我離開之前離開
不是因為寂寞才想你
愛上你等于愛上了錯
在心里從此永遠有個你
一個人的寂寞兩個人的錯
主站蜘蛛池模板: 绍兴市| 安国市| 太仓市| 柘荣县| 海晏县| 尼木县| 临武县| 平山县| 克山县| 岳池县| 定日县| 微山县| 诸城市| 大渡口区| 错那县| 龙江县| 上犹县| 涿州市| 新宁县| 宁武县| 漯河市| 清镇市| 朔州市| 大安市| 开远市| 米脂县| 民县| 观塘区| 宜黄县| 铜山县| 龙州县| 佛坪县| 龙州县| 嘉荫县| 鸡东县| 云浮市| 宝山区| 肥东县| 乐至县| 南平市| 嘉峪关市|