How to stop broken images showing

后端 未结 12 2347
谎友^
谎友^ 2021-01-02 12:08

I have a table with some images that I want to start out with no images in them.I have set the src=\"\".But when viewed in a browser it shows broken image pics.



        
12条回答
  •  时光取名叫无心
    2021-01-02 12:32

    The src attribute is required to point to an image; if you have no image, don't use the img element.

    You could use any other element and set the background-image property if required.

提交回复
热议问题