易截截图软件、单文件、免安装、纯绿色、仅160KB

使用css改变表格边框样式

◆ 网页平面多媒体培训、认证考试免费咨询热线:400-700-5807   进入网络咨询平台 ◆
用CSS改变表格边框样式,很实用的一种方法。
制作方法:
将下面的代码复制到<body>~</body>里,此为隐藏下边框
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-bottom-width: 0" bordercolor="#111111" width="90">
<tr align="center">
<td style="border-bottom-style: none; border-bottom-width: medium" height="25">隐藏下边</td>
</tr>
</table>
将下面的代码复制到<body>~</body>里,此为隐藏上边框
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-top-width: 0" bordercolor="#111111" width="90">
<tr align="center">
<td height="25" style="border-top-style: none; border-top-width: medium">隐藏上边框</td>
</tr>
</table>
将下面的代码复制到<body>~</body>里,此为隐藏左边框
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 0" bordercolor="#111111" width="90">
<tr align="center">
<td style="border-left-style: none; border-left-width: medium" height="25">隐藏左边框
</td>
</tr>
</table>
将下面的代码复制到<body>~</body>里,此为隐藏右边框
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-right-width: 0" bordercolor="#111111" width="90">
<tr align="center">
<td style="border-right-style: none; border-right-width: medium" height="25">隐藏右边框
</td>
</tr>
</table>
至此你就可以完成这个实例了,你可以自己试试!有什么不明白的地方可以问我!。 
文章来源:http://www.jiuyepx.cn/Html/jishu/wysj/2984.html


相关文档:

CSS层叠加的原则

静态定位:position:static(为position属性的默认值)。    
动态定位:position:relative或position:absolute或position:fixed。    
祖元素:任意包含该元素的元素。     父元素:直接包含该元素的祖元素。     同辈元素:拥有共同的父元素的元素。
注:这些概
念为作者 ......

关于css的界面问题:

自己总结的心得:
1:在css设计中,当图片不够宽时,这时可以考虑使用背景颜色(与该图片相似的颜色)来补充。
2,在css设计中,可以使用图片的背景色向网页的背景色过渡
如图:
具体参照《精通JavaScript+Jquery》3-20.html ......

div+css浏览器兼容问题解决方法


div+css浏览器兼容问题解决方法
从网上收集了IE7,6与Fireofx的兼容性处理方法并整理了一下.对于web2.0的过度,请尽量用xhtml格式写代码,而且DOCTYPE 影响 CSS 处理,作为W3C的标准,一定要加 DOCTYPE声名. 
 
CSS技巧
 
1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高
line- ......

CSS在IE6,IE7,FIREFOX中的区别

第一种,是CSS HACK的方法
height:20px; /*For Firefox*/
*height:25px; /*For IE7 & IE6*/
_height:20px; /*For IE6*/
注意顺序。
这样也属于CSS HACK,不过没有上面这样简洁。
#example { color: #333; } /* Moz */
* html #example { color: #666; } /* IE6 */
*+html #example { color: #999; } /* IE7 */ ......

DIV+CSS设计时浏览器兼容性问题

在这种浏览器下显示正常,在另一种下就乱了,我们在编写CSS的时候会很恼火,刚修复了这个浏览器的问题,结果另外一个浏览器却出了新问题。

-
  
什么是浏览器兼容:当我们使用不同的浏览器(Firefox IE7
IE6)访问同一个网站,或者页面的时候,会出现一些不兼容的问题,在这种浏览器下显示正常 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号