我一生都无法弄清楚为什么这个脚本不能在我的网站上运行,但它可以在 JSFIDDLE 上运行
这是我当前在 JSFiddle 中工作的脚本
这是我正在尝试设计的网站的链接
http://blog.redeyeproject.com/WebForm1.aspx
本质上我想要完成的是在我的视线中模拟Windows Phone 7的拖动滚动
或者对于那些不知道 iPhone 的人
最佳答案
据我在您的网站中看到的内容,您没有包含所需的 CSS。
#scrollareax {
width:350px;
height:350px;
overflow:hidden;
position:relative;
cursor:pointer;
}
#wrapperx
{
background-image: url("img/wp7.png");
background-repeat: no-repeat;
width: 800px;
height:1500px;
margin-left: auto;
margin-right: auto;
position:relative;
}
关于jquery - DragScroll 无法在我的 ASP.NET 网站 JQuery 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7699841/