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

為了賬號安全,請及時綁定郵箱和手機立即綁定

幫我看看哪有問題,怎么框架彈回去就消失了呢?

<!DOCTYPE?html>
<html>
<head>
????<meta?charset="utf-8">
????<title></title>
????<link?rel="stylesheet"?type="text/css"?href="css/1.css">
????<style?type="text/css">????????
????????*{margin:0;padding:0;}
????????li{
??????????list-style:none;
????????}
????????.huiyuan,.mima?,.chongfu{
?????????????width:500px;?
?????????????font-size:?30px;?
?????????????margin:0?auto;
????????}

????????#yu{
????????????position:relative;
????????????top:0px;
????????????left:-480px;
????????????border:?2px?solid?#000;
????????????border-radius:?10px;
????????????width:500px;
????????}
</style>
</head>
<body>
<!--?<form?method="post"?action="saike.php">?-->
<div?id="yu">?
????<ul>
????????<li?class="huiyuan">會員:<input?type="text"??placeholder="ttt"/></li>
????????<li??class="mima">密碼:<input?type=?"password"/></li>
????????<li?class="chongfu">重復密碼:<input?type="password"/></li><input?type="button"?name="bbb"?onclick="aaa()"?value="333">
????</ul>
</div>
<!--?</form>?-->
<script>
window.onload?=?function(){
????var?c?=?document.getElementById('yu');
????c.onmouseover?=function(){
????????move();
????????}
????c.onmouseout?=?function(){
????????leave();
????????}???
}??
var?timer?=?null;??????
function?move(){????
????????clearInterval(timer);
????????timer?=?setInterval(function(){????????
????????var?c?=?document.getElementById('yu');
????????if(c.offsetLeft?>=?0){
????????????clearInterval(timer);
????????}
????????else{????
????????????c.style.left?=?c.offsetLeft+10+"px";
????????}
????},10)
}
function?leave(){????
????????clearInterval(timer);
????????timer?=?setInterval(function(){????????
????????var?c?=?document.getElementById('yu');
????????if(c.offsetLeft?<=?-480+"px"){
????????????clearInterval(timer);
????????}
????????else{????
????????????c.style.left?=?c.offsetLeft-10+"px";
????????}
????},10)
}????
</script>
</body>
</html>


正在回答

1 回答

offsetLeft 為數(shù)值 ?不該+px


function leave(){ ? ?

? ? ? ? clearInterval(timer);

? ? ? ? timer = setInterval(function(){ ? ? ? ?

? ? ? ? var c = document.getElementById('yu');

? ? ? ? if(c.offsetLeft <= -480){

? ? ? ? ? ? clearInterval(timer);

? ? ? ? }

? ? ? ? else{ ? ?

? ? ? ? ? ? c.style.left = c.offsetLeft-10+"px";

? ? ? ? }

? ? },10)

} ? ?


0 回復 有任何疑惑可以回復我~
#1

oju 提問者

非常感謝!
2016-08-21 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

幫我看看哪有問題,怎么框架彈回去就消失了呢?

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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