1
我想隱藏基於iPad上物品的觸摸元素。以下鏈接說 - https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html,支持Safari支持ontouchstart屬性,但它不起作用。我們在這種情況下做什麼?我無法使用任何JavaScript。我只需要在html中實現它。ontouchstart不可用於iPad?
我的代碼:
<div class="myclass" id="overlay" ontouchstart="hideElement()" onclick="hideElement()" onmousedown="hideElement()"></div>