开发者

How to block the client action of the iframe in mobile browser?

开发者 https://www.devze.com 2023-02-15 18:14 出处:网络
In mobile browser if i click the iframe it 开发者_如何学Gowill give some border color it means its selected ifram. so how do i block the client side selection in the browser.Here is another way, save

In mobile browser if i click the iframe it 开发者_如何学Gowill give some border color it means its selected ifram. so how do i block the client side selection in the browser.


Here is another way, save below code as .html and then try in browser:

<div style="position:relative">
   <div style="width:300px;height:300px;position:absolute;left:0;top:0;z-index:1;"><br /><br /><br />World~~~~~</div>
   <div style="width:300px;height:300px;position:absolute;left:0;top:0">Hello (put your iframe here, you could not select the text in this DIV)</div>
</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消