Home >Web Front-end >HTML Tutorial >Can js set the border of table to 0_html/css_WEB-ITnose

Can js set the border of table to 0_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:58:421027browse

The border of the table was initially set to 1, but now it needs to be set to 0 in js. How to achieve this?


Reply to discussion (solution)

Just set the table's border attribute to 0 directly. $("table").attr("border",'0');

Just set the border attribute of the table to 0 directly. $("table").attr("border",'0');

thanks
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn