使用jQuery更改表的边框? [英] Changing the border with of a table with jQuery?

查看:79
本文介绍了使用jQuery更改表的边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从Sphinx生成的表,其边框宽度为1。

I have a table generated from Sphinx that has a border of width 1.

<table border="1" class="docutils">

我可以使用jQuery / javascript将边框宽度更改为0吗?

Can I change the border width to 0 using jQuery/javascript?

推荐答案

是的,你可以。你想使用像这样的 attr()函数 ......

Yes you can. You want to use the attr() function like this...

$('table.docutils').attr('border', '0');

这篇关于使用jQuery更改表的边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆