How to modify the height of td with jQuery

青灯夜游
Release: 2021-11-22 11:52:52
Original
1964 people have browsed it

JQuery method to modify td height: 1. Use attr() method, syntax "$("td").attr("style","height: height value;");"; 2. Use css() method, syntax "$("td").css("height","height value");".

How to modify the height of td with jQuery

The operating environment of this tutorial: windows7 system, jquery1.10.2 version, Dell G3 computer.

How to modify the height of td with jQuery

1. Use the attr() method

attr() method can set the attribute value of the selected element.

      
人物信息
姓名 年龄
Peter 20
Lois 20

Copy after login

How to modify the height of td with jQuery

2. Use the css() method

      
人物信息
姓名 年龄
Peter 20
Lois 20

Copy after login

How to modify the height of td with jQuery

Recommended related video tutorials:jQuery Tutorial(Video)

The above is the detailed content of How to modify the height of td with jQuery. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!