`
Johnny_GZ
  • 浏览: 176821 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

设置表格样式-细线边框

    博客分类:
  • html
阅读更多
<style type="text/css">
    .tab1{background:red;}
    .tab1 td{background:#fff;}
</style>

定义上面的样式,然后在页面中的表格应用此样式会得到细线的边框表格,如红色字体部分:
<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0" class="tab1" >

<style type="text/css">
   table { background-color:#cccccc; }
   tr { background-color:#ffff7f; }
   td { height:24px; padding:2px; }
</style>

style="cursor: hand" 当鼠标移动到的时候变成手指,类似<a>链接</a>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics