Under chrome, the image of the img tag cannot be displayed_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:06:14
Original
2395 people have browsed it

Code:

     <div><a href="#"><img src="some.png" /> </a></div>    
Copy after login

Confirm that the code is correct. It can be displayed normally in IE6.0, FF, safari and other browsers, but the image cannot be displayed in chrome. What's the problem?


Reply to the discussion (solution)

It doesn’t seem to be a compatibility issue. I tried it with chrome version 23.0.1271.10 and it can display png. It may be a file format issue. For example, if the image itself is not in png format, but you directly changed the suffix name, I suggest that the author try changing the image

No, it can be displayed when opening the image in a new window. It’s really strange. It doesn’t seem to be a compatibility issue. I tried it here with chrome version 23.0.1271.10, and it can display png. It may be a file format problem. For example, if the image is not in png format, you directly changed the suffix name. I suggest you try changing the image

It can be displayed. . You check your code again. .

theforever_csdn

There is no problem in the Chrome test"

The chrome I tried is ok, please check if it is a problem with the browser itself

It is a problem with the browser itself

Add a width to the outer div. If not, uninstall it and try again

I also encountered the same problem and it can be displayed in both FF and IE. There is no problem when right-clicking and displaying in the new tab page. I don’t know how to solve it?

I also encountered this problem today,


InsideThis does not exist at all.
The source code is displayed as

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!