无码视频在线观看,99人妻,国产午夜视频,久久久久国产一级毛片高清版新婚

  • 始創(chuàng)于2000年 股票代碼:831685
    咨詢熱線:0371-60135900 注冊有禮 登錄
    • 掛牌上市企業(yè)
    • 60秒人工響應(yīng)
    • 99.99%連通率
    • 7*24h人工
    • 故障100倍補償
    全部產(chǎn)品
    您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

    簡單實用的網(wǎng)頁表格特效

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

     

      一、彩色虛線表格


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

      二、鼠標(biāo)指向單元格變色
     
     
     

    onmouseout="this.style.backgroundColor=''" 鼠標(biāo)離開效果onmouseover="this.style.backgroundColor='#FFcccc'"鼠標(biāo)放上去的效果,
    可以修改#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、充分利用根據(jù)表格對齊的方式

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

     
     
     

    <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元素的地方插入相關(guān)代碼,style=""如:
    <table width="201" border="1" style="filter: Alpha(Opacity=20);background-color: #66CCFF;">
     


    本文出自:億恩科技【mszdt.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、充分利用根據(jù)表格對齊的方式

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

     
     
     

    <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元素的地方插入相關(guān)代碼,style=""如:
    <table width="201" border="1" style="filter: Alpha(Opacity=20);background-color: #66CCFF;">
     


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

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

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

    0371-60135900
    7*24小時客服服務(wù)熱線