我有一個與jQuery的網頁。當我在iPad/iPhone中打開它時,超鏈接在爲其設置懸停行爲時無法按預期工作。與iOS上的點擊/懸停行爲混淆與jQuery
我試圖通過瀏覽互聯網上的許多網站,但找不到任何特定的解決方案。也許我無法理解發生了什麼。我會欣賞一些線索和解決方案。
這裏是設置懸停代碼:
.box:hover .box_details .description2 {
height: auto !important;
display: block
}
.box .social {
width: 150px ;
position: absolute;
z-index: 99 ;
margin: 0 auto;
margin-left: 50%;
left: -75px;
text-align: center
}
.box:hover .social ul {
margin-top: 10px;
-webkit-transition: margin-top linear 0.5s ;
transition: margin-top linear 0.5s ;
}
.box .social ul {
width: 100% ;
float: left ;
margin-top: -50px ;
}
.box .social ul li {
float: left;
list-style: none;
margin: 1% 1% 0 1%;
line-height: 20px;
width: 22%
}
.box .social ul li img {
width: 100% !important;
position: relative
}
請幫助我。謝謝!
你能告訴我們你的代碼嗎?還......你怎麼能在觸摸屏設備上懸停?無論你是否觸摸它,沒有鼠標光標懸停在元素上... – Th0rndike
iOS中的'懸停'是什麼? –
您可以使用[jQuery Mobile Events](http://api.jquerymobile.com/category/events/)做得更好,嘗試「tap」或「taphold」。 – Mooseman