第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

怎樣手動滑動div

怎樣手動滑動div

慕萊塢森 2018-10-16 13:34:40
我的body里有兩個div,默認第一個div, height站滿屏,有一個點擊事件,點擊事件中用什么方法能夠滑動到屏幕的底部啊
查看完整描述

1 回答

?
Qyouu

TA貢獻1786條經(jīng)驗 獲得超11個贊

$("#div").animate({height:'0'});

<style>

body{margin: 0; padding: 0}#content1{    height: 100%;    background-color: #00a0c6;    width: 100%;
}#content2{    width: 100px;    height: 100px;    background-color: white;    z-index: 100;    float: left;    
position: fixed;    top: 0;
}

</style>
<script>

$(function () {
 $('body').height(window.screen.height);
 $('body').width(window.screen.width);
})

</script>
<body>
<div id="content2"></div>
<div id="content1"></div>
<script>

$('#content1').click(function () {
    $('#content2').animate({top:'85%'});
})

</script>


查看完整回答
反對 回復(fù) 2018-11-05
  • 1 回答
  • 0 關(guān)注
  • 558 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號