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>
精彩评论