html 如何去掉表格中的边框

html-css010

html 如何去掉表格中的边框,第1张

border="0"可以去除边框以下是关于border的一些相关资料:定义和用法border 属性在一个声明中设置所有边框属性。语法:Object.style.border=borderWidth borderStyle borderColorborderWidth设置边框的宽度。thinmediumthicklengthborderStyle设置边框的样式。nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetborderColor设置边框的颜色。color-namecolor-rgbcolor-hextransparent实例本例改变元素的边框:<html><head><style type="text/css">p{ border: thin dotted #FF0000}</style><script type="text/javascript">function changeBorder(){document.getElementById("p1").style.border="thick solid #0000FF"}</script></head><body><input type="button" onclick="changeBorder()"value="Change border" /><p id="p1">This is a paragraph</p></body></html>

---河南新华网络运营协会为您解答

html中去掉表格边框线

border="0"可以去除边框以下是关于border的一些相关资料:定义和用法border 属性在一个声明中设置所有边框属性。语法:Object.style.border=borderWidth borderStyle borderColorborderWidth设置边框的宽度。thinmediumthicklengthborderStyle设置边框的样式。nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetborderColor设置边框的颜色。color-namecolor-rgbcolor-hextransparent实例本例改变元素的边框:<html><head><style type="text/css">p{ border: thin dotted #FF0000}</style><script type="text/javascript">function changeBorder(){document.getElementById("p1").style.border="thick solid #0000FF"}</script></head><body><input type="button" onclick="changeBorder()"value="Change border" /><p id="p1">This is a paragraph</p></body></html>

这位网友你好,可以给这个table加一个class,设置左右边框为0就可以了,或者直接用外边的div的class限制一下。

举例:

.father table{ border-left:noneborder-right:none }