search

Home  >  Q&A  >  body text

javascript - How to prevent img pictures from being opened by the picture viewer of mobile browsers

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>
巴扎黑巴扎黑2740 days ago975

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-06-17 09:18:19

    1. Use CSS to make the background

    2. onclick="javascript: return false"

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-17 09:18:19

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

    reply
    0
  • Cancelreply