最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

窗口隨鼠標拖拽移動,沒有效果

窗口隨鼠標拖拽移動,沒有效果

<!DOCTYPE html><html><head>? ? <meta charset="UTF-8">? ? <title>Document</title><style type="text/css">? ? html,body{? ? ? ? margin:0;? ? ? ? padding: 0;? ? ? ? width: 100%;? ? ? ? height: 100%;? ? }? ?h1{? ? position: relative;? ? margin: 0 auto;? ? /*text-align: center;*/? ? top:50%;? ? transform:translateY(-50%);? ?}?? ?.move_out{? ? position: relative;? ? cursor:pointer;? ?}</style></head><script type="text/javascript">? ? var move_out=false;? ? var z,x,y;? ? function move(){? ? ? ? if(event.button==move_out){? ? ? ? ? ? z.style.pixelLeft=temporarily1+clientX-x;? ? ? ? ? ? z.style.pixelTop=temporarily2+clientY-y;? ? ? ? ? ? return false? ? ? ? }? ? }? ? function down(){? ? ? ? if(event.srcElement.className=="move_out"){? ? ? ? ? ? move_out=true;? ? ? ? ? ? z=event.srcElement;//當前事件源? ? ? ? ? ? temporarily1=z.style.pixelLeft;? ? ? ? ? ? temporarily2=z.style.pixelTop;? ? ? ? ? ? x=event.clientX;? ? ? ? ? ? y=event.clientY;? ? ? ? ? ? document.onmousemove=move;? ? ? ? }? ? ? ? else{? ? ? ? ? ? move_out=false;? ? ? ? }? ? }? ? document.oumousedown=down;</script><body>? ??? ? ? ? <!-- <h1>Follow me!</h1> -->? ? <font>Fllow me!</font> ? ?? ??</body></html>
查看完整描述

4 回答

?
IVWEB_Jeremygao

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

oumousedown ? ?是我屏幕的像素點排列錯了嗎?

查看完整回答
反對 回復(fù) 2017-09-01
?
寶慕林5251960

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

明天給你我寫的

查看完整回答
反對 回復(fù) 2017-08-30
?
cnyballk

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

你哪看來的,你真得明白函數(shù)事件這些事情嗎,好好看js基礎(chǔ)先吧

查看完整回答
反對 回復(fù) 2017-08-28
?
騎驢的帥小伙

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

你的代碼我看著挺懵逼的……代碼貼全了么?你的event哪里來的?也沒見函數(shù)傳參

查看完整回答
反對 回復(fù) 2017-08-28
?
anet

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

html5自帶拖放

查看完整回答
反對 回復(fù) 2017-08-27
  • 4 回答
  • 0 關(guān)注
  • 2410 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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