我只是想知道,如果它能夠真正得到溢出滾動到使用jQuery UI拖動協同工作,在手機上。我知道jQuery用戶界面無法在移動工作,但我已經得到了黑客它,所以它不僅響應鼠標也觸及的腳本。jQuery的可拖動和溢出滾動
現在如果我在一個代碼來獲得jQuery UI的可拖動到工作,然後溢出滾動不會這樣啊,我只是想知道如果任何人知道如何讓周圍的下降?
這裏是我的代碼
<!DOCTYPE HTML>
<html >
<head>
<meta name="viewport" content="initial-scale=1.0,user-scalable=no, width=100%" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://webprofolio.freeserver.me/jquery.ui.touch-punch.min.js"></script>
<style>
#parent
{
background-color:blue;
width:400px;
height:400px;
}
#content
{
background-color:red;
width:380px;
height:380px;
overflow-y:auto;
margin:auto;
}
#thebody
{
background-color:green;
width:600px;
height:400px;
}
</style>
</head>
<body>
<div id="thebody">
<div id="parent">
<div id="content">
<p>
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
Hello gentlemen welcome to the end of the days!!! you want to buy some sandwiches? No thanks, I don't like strawberries
The last paragraph
</p>
</div>
</div>
</div>
<script>
touchMove();
function touchMove()
{
$("#parent").draggable({ axis: "x" , containment:"parent"},
{});
}
</script>
</body>
</html>
你有沒有_have_是如此的進攻在原來的職位?好東西我編輯它... – Bojangles
請不要在這裏使用冒犯性的語言。堆棧溢出是專業人士的網站。 – ChrisF
哦,我真是對不起我只是複製並粘貼隨意的事情,我沒有意思是壞攻勢把它放在 –