Home  >  Article  >  Web Front-end  >  Under chrome, the image of the img tag cannot be displayed_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-24 12:06:142393browse

Code:

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

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. .

c251bfbd5dbacc99845cbad75e19458aee7959cc8dd4be16ef633321c03dac32430bf5ec6e59cd9267c2038f80ed93f5theforever_csdn5db79b134e9f6b82c0b36e0489ee08edd4e6ef3935d870d31c81823c096b9b03

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,
dd21b0ea8171308b1f2a7a87137922cdee7959cc8dd4be16ef633321c03dac320a2d83063dce46ecdd898f41e8f6a1f65db79b134e9f6b82c0b36e0489ee08ed16b28748ea4df4d9c2150843fecfba68
Insidebfba39a06e09a238525a47ca8955db91 /images/ad.jpg" width="1000" height="309" />This does not exist at all.
The source code is displayed asdd21b0ea8171308b1f2a7a87137922cdee7959cc8dd4be16ef633321c03dac32 5db79b134e9f6b82c0b36e0489ee08ed16b28748ea4df4d9c2150843fecfba68

Statement:
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