您好,欢迎来到划拓汽车网。
搜索
您的当前位置:首页jQuerydiv层的放大与缩小简单实现代码_jquery

jQuerydiv层的放大与缩小简单实现代码_jquery

来源:划拓汽车网


代码如下:






$(document).ready(function() {
if ($('#content').height() > 400)
$('#content').height(400);
$('#bigger').toggle(function() {
$('#content').height($('#content').height() + 100);
$('#bigger').html('缩小');
}, function() {
$('#content').height($('#content').height() - 100);
$('#bigger').html('放大');
})
});




內容1

內容2

內容3

內容4

內容5

內容6

內容7

內容8

內容9

內容10

內容11

內容12

內容13

內容14

內容15

內容16

內容17

內容18

內容19

內容20

內容21

內容22

內容23

內容24

內容25




放大


Copyright © 2019- huatuoask.net 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务