开发者

Getting a <td>'s height and a <p>'s font size with JavaScript

开发者 https://www.devze.com 2022-12-12 21:40 出处:网络
How can I get and set a <td>\'s height and a <p>\'s CSS prop开发者_高级运维erty font-size with JavaScript?var h = $(\'td\').height();

How can I get and set a <td>'s height and a <p>'s CSS prop开发者_高级运维erty font-size with JavaScript?


var h = $('td').height();
$('p').css('font-size', '12pt');

www.jquery.com

0

精彩评论

暂无评论...
验证码 换一张
取 消