1 回答

TA貢獻1830條經驗 獲得超9個贊
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>
- 1 回答
- 0 關注
- 1667 瀏覽
添加回答
舉報