非官方活动第一期:轻松完成任务 赢取精美奖品

[DreamWeaver教程] 玩转表格——汇总帖

一楼:把表格进行到底(必看)


1.表格的分隔线可以隐藏

  1. <table border rules=cols cellspacing=0 align=left> 可以隐藏横向的分隔线

  2. <table border rules=rows cellspacing=0 align=right>可以隐藏纵向的分隔线

  3. <table border rules=none cellspacing=0 align=center>可以隐藏横向和纵向的分隔线
复制代码



2.表格的边框不断在闪

以下方法可以令表格的边框不断在闪,很实用的
在BODY区加上

  1. <table border="0" width="280" id="myexample"
  2. style="border:5px solid yellow">

  3. <tr>

  4. <td>加入任意的物件.加入任意的物件.

  5. <br>加入任意的物件.加入任意的物件.

  6. <br>加入任意的物件.加入任意的物件.</td>

  7. </tr>

  8. </table>

  9. <script language="JavaScript1.2">

  10. <!--

  11. function flashit(){

  12. if (!document.all)

  13. return

  14. if (myexample.style.borderColor=="yellow")

  15. myexample.style.borderColor="lime"

  16. else

  17. myexample.style.borderColor="yellow"

  18. }

  19. setInterval("flashit()", 500)

  20. //-->

  21. </script>
复制代码



3.表格分行下载

这个对表哥内容很大比较实用

在需要分行下载处加上 <tbody >

比如:
  1. <table >
  2. <tbody >
  3. <tr >
  4. <td >flsdjfsdjfkdsjf</td >
  5. </tr >
  6. <tr >
  7. <td >skdjfsdjfksd</td >
  8. </tr >
  9. </tbody >

  10. <tbody >
  11. <tr >
  12. <td >flsdjfsdjfkdsjf</td >
  13. </tr >
  14. <tr >
  15. <td>skdjfsdjfksd</td >
  16. </tr >
  17. </tbody >
  18. </table >
复制代码




4.几种样式不同的表格

  1. <table border="1" width="220" style="position: absolute; left:
  2. 11; top: 11" height="26" >

  3. <tr>

  4. <td width="100%">普通表格</td>

  5. </tr>

  6. </table>
复制代码


5.正立方表格

  1. <table border="1" width="220" bordercolorlight="#eeeeee"
  2. bordercolordark="#000000" style="position: absolute; left: 10; top:
  3. 49" height="26">

  4. <tr>

  5. <td width="100%">正立方表格</td>

  6. </tr>

  7. </table>
复制代码



6.细表格

  1. <table border="0" frame=vsides width="219"
  2. bgcolor="#000000" cellspacing="1" cellpadding="0"
  3. height="22" style="position: absolute; left: 11; top: 86">

  4. <tr bgcolor="#FFFFFF">

  5. <td width="100%" height="2">细表格</td>

  6. </tr>

  7. </table>
复制代码


7.立体表格

  1. <table border="1" width="220" bordercolorlight="#ffffff"
  2. bordercolordark="#ffffff" style="position: absolute; left: 10; top:
  3. 112" height="34">

  4. <tr>

  5. <td width="100%" bgcolor="#B7B7B7"
  6. bordercolorlight="#000000" bordercolordark="#eeeeee" >立体表格</td>

  7. </tr>

  8. </table>
复制代码



8.无名表格  (个人很喜欢这个效果。可惜它对不同浏览器显示不一样)

  1. <table width="220" align="center" style="position: absolute;
  2. left: 246; top: 12" height="51">

  3. <tr>

  4. <td><fieldset style="width:220" align="center">
  5. <legend> 无名表格 </legend>  <p align="right"> </fieldset>
  6. <br>

  7. </td>

  8. </tr>

  9. </table>
复制代码




9.表中表效果Ⅱ

  1. <table width="220" align="center" style="position:
  2. absolute; left: 245; top: 89" height="110">
  3. <tr>
  4. <td height="75"><fieldset style="width:220"
  5. align="center"> <legend> 表中表效果Ⅱ </legend> <table
  6. frame="hsides" border="1"
  7. bordercolorlight="#000000" bordercolordark="#ffffff"
  8. width="100%" cellspacing="1" cellpadding="0" height="78">
  9. <tr bgcolor="#ffffff">
  10. <td width="100%" height="76"></fieldset></td>
  11. </tr>
  12. </table>
复制代码


10.表中表效果Ⅰ

  1. <table width="220" align="center" style="position: absolute;
  2. left: 10; top: 120" height="138" cellspacing="1"
  3. cellpadding="0">

  4. <tr>

  5. <td height="126"><fieldset style="width: 220; color: #B7B7B7;
  6. border-style: groove" align="center"> <legend style="color:
  7. #FFFFFF; border: 1 solid #808080" > <font color="#000000">表中表效果Ⅰ</font>
  8. </legend>  <p align="right"> </fieldset>

  9. </td>

  10. </tr>

  11. </table>
复制代码



11.表格中边框的显示


  1. 只显示上边框 <table frame=above>
  2. 只显示下边框 <table frame=below>
  3. 只显示左、右边框 <table frame=vsides>
  4. 只显示上、下边框 <table frame=hsides>
  5. 只显示左边框 <table frame=lhs>
  6. 只显示右边框 <table frame=rhs>
  7. 不显示任何边框 <table frame=void>
复制代码

[ 本帖最后由 bianews52 于 2008-2-3 21:18 编辑 ]

1.jpg
2008-2-19 13:08

————————————————————————————————————————————————
表格边框的显示与隐藏,是可以用frame参数来控制的。请注意它只控制表格的边框图,而不影晌单元格。
只显示上边框 <table frame=above>
只显示下边框 <table frame=below>
只显示左、右边框 <table frame=vsides>
只显示上、下边框 <table frame=hsides>
只显示左边框 <table frame=lhs>
只显示右边框 <table frame=rhs>
不显示任何边框 <table frame=void>

[ 本帖最后由 乌龙 于 2008-2-19 13:09 编辑 ]
怎么做专题(如无特别注明,DW版帖子均转自互联网)
投诉空间商

TOP

此帖因事故丢失内容

[ 本帖最后由 乌龙 于 2008-3-3 20:54 编辑 ]
怎么做专题(如无特别注明,DW版帖子均转自互联网)
投诉空间商

TOP

怎么做专题(如无特别注明,DW版帖子均转自互联网)
投诉空间商

TOP

版主好厉害啊
常营网(常营社区)发来祝www.ichangying.com
支持网络编辑社区发展就多多发帖吧!没有帖子的论坛就如同一潭死水,没有生气!哪怕只是一句简单的回复也是对发帖者莫大的鼓舞和支持,也是社区发展的动力!发帖为荣、潜水可耻!
常营社区

TOP

学习了

学习了。。。。。。

TOP

学习了,收藏了
Phpcms2008正式发布

TOP