开发者

How to change values using jquery?

开发者 https://www.devze.com 2023-04-12 18:08 出处:网络
How do i go about changing the values inside the style for width and height using jquery? <div id=\"id11t\" style=\"position: relative; width: 1022px; height: 446px;\">

How do i go about changing the values inside the style for width and height using jquery?

<div id="id11t" style="position: relative; width: 1022px; height: 446px;">

Thank开发者_Python百科s


$('#id11t').css({
  width: "300px",
  height: "200px"
})


$("#id11t").css('width', '1022px');
$("#id11t").css('height', '1022px');

Will resize your div to 1022x1022


$('#id11t').width(X);
$('#id11t').height(Y);
0

精彩评论

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