ipad下的常見問題(持續更新)1

1:ipad中div contenteditable=true無法輸入

加一個樣式-webkit-user-select:text就可以了

div[contenteditable="true"]{
	-webkit-user-select:text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}


2:jQuery ui 在ipad中沒有反應

jQuery UI這個jQuery控件庫,附帶不支持觸摸事件。Touch Punch插件剛好爲這個控件庫添加觸摸事件支持。通過模擬事件將觸摸事件映射到相似的鼠標事件上

<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.8.17/jquery-ui.min.js"></script>
<script src="jquery.ui.touch-punch.min.js"></script> //引入後 jqui的組件就可以支持觸控

下載:jquery-ui-touch-punch





1:參考文獻

  1. OPEN經驗投稿



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章