javascript - How to prevent img pictures from being opened by the picture viewer of mobile browsers
巴扎黑
巴扎黑 2017-06-17 09:16:19
0
2
949

1. Hello everyone~ I found a problem when making the advertising page and landing page.

2. For a page similar to the landing page and advertising page, when the picture is clicked on the UC browser of Android, it becomes a view of the picture (this situation is not found in other browsers)

3. The page code structure is as follows:

<p>
    <img src="imgPath">
</p>

4.img is a picture that covers the entire mobile phone. When you click on the picture, it becomes a view of the picture. How to prevent/disable this kind of picture viewer on UC mobile

5. In addition, business needs cannot be replaced by background images = =. I have considered it before, but I can only use img

6. The problem is solved. The solution is to add a tag to the two paragraphs of img. Thank you everyone~

<p>
 <a href='javascript:void(0)'>
  <img src="imgPath">
 </a>
</p>
巴扎黑
巴扎黑

reply all(2)
刘奇
  1. Use CSS to make the background

  2. onclick="javascript: return false"

曾经蜡笔没有小新

Create it directly into the background, isn’t it very straightforward and simple

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template