jquery css怎么设置高度


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<html>

<head>

<script type="text/javascript" src="/jquery/jquery.js"></script>

<script type="text/javascript">

$(document).ready(function(){

  $(".btn1").click(function(){

    $("p").height(50);

  });

});

</script>

</head>

<body>

<p style="background-color:yellow">This is a paragraph.</p>

<button class="btn1">改变高度</button>

</body>

</html>

效果截图:

35621ce9909e03f4f3350941acc8f76.png

推荐学习:《jquery视频教程》

以上就是jquery css怎么设置高度的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

如何解决jQuery min 报错问题

jQuery怎样才能快速滚动到页面顶部

jQuery为什么写入口函数

详解jQuery的扩展方法extend

如何用jQuery让图片逐渐显示出来

jQuery $.post方法不执行怎么办

jQuery如何实现禁用浏览器后退

如何解决jQuery不兼容问题

jQuery $(this)怎么用

jQuery和ajax是什么?

更多相关阅读请进入《jQuery》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...