且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除html表中新创建的行中单元格的边框

更新时间:2023-02-01 08:47:48

默认情况下,没有任何边框。如果你看到一些边框,就意味着你把它们添加到了某个地方。



***控制边框是使用CSS:

http://www.w3schools.com/css/css_border.asp [ ^ ],

http://www.w3schools.com/cs-s-ref/pr_border.asp [ ^ ]。



实际上,除了 class ,也应稀疏使用。您还可以在脚本中动态定义CSS类。



如果您需要动态更改某些元素的CSS类,***的方法是正在使用jQuery: http://api.jquery.com/category/css [ ^ ]。



如果你需要学习jQuery(强烈推荐),请参阅:

http://en.wikipedia.org/wiki/ JQuery [ ^ ],

http://jquery.com [ ^ ],

http://learn.jquery.com [ ^ ],

HTTP://learn.jquery .com / using-jquery-core [ ^ ],

http://learn.jquery.com/about -jquery / how-jquery-works [ ^ ](从这里开始)。



-SA
By default, there are no any borders. If you see some borders, it means you added them somewhere.

The best to control borders is using CSS:
http://www.w3schools.com/css/css_border.asp[^],
http://www.w3schools.com/cs-s-ref/pr_border.asp[^].

Actually, you should not use any HTML tags related to styles except class, which also should be used sparsely. You can also define CSS classes on the fly in your scripts.

If you need to change the CSS classes of some element on the fly, the best way to do it is using jQuery: http://api.jquery.com/category/css[^].

If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com[^],
http://learn.jquery.com[^],
http://learn.jquery.com/using-jquery-core[^],
http://learn.jquery.com/about-jquery/how-jquery-works[^] (start from here).

—SA