1. <var id="fe6gj"></var>

    <rp id="fe6gj"><nav id="fe6gj"></nav></rp>

    <noframes id="fe6gj"><cite id="fe6gj"></cite>

    <ins id="fe6gj"><button id="fe6gj"><p id="fe6gj"></p></button></ins>
    1. <tt id="fe6gj"><i id="fe6gj"><sub id="fe6gj"></sub></i></tt>
        始創于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        您的位置: 網站首頁 > 幫助中心>文章內容

        簡單實用的網頁表格特效

        發布時間:  2012/7/24 16:29:48
        在我們制作主頁的過程中,用到表格的地方非常多,靈活運用表格技巧可以為我們的網頁增色不少,這里我就詳細介紹幾中特效表格的制作方法。

         

          一、彩色虛線表格


        <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;">
         


        本文出自:億恩科技【www.endtimedelusion.com】
          三、立體表格
         
        立體 表格

        <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;">
         


        本文出自:億恩科技【www.enidc.com】
        -->

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

      1. 您可能在找
      2. 億恩北京公司:
      3. 經營性ICP/ISP證:京B2-20150015
      4. 億恩鄭州公司:
      5. 經營性ICP/ISP/IDC證:豫B1.B2-20060070
      6. 億恩南昌公司:
      7. 經營性ICP/ISP證:贛B2-20080012
      8. 服務器/云主機 24小時售后服務電話:0371-60135900
      9. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      10. 專注服務器托管17年
        掃掃關注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
          1
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線

         
         
        av不卡不卡在线观看_最近2018年中文字幕_亚洲欧美一区二区三区_一级A爱做片免费观看国产_日韩在线中文天天更新_伊人中文无码在线