css “background-image” shows unwanted border, img “src” does not

后端 未结 5 667
长情又很酷
长情又很酷 2021-02-07 08:06

Getting started with Twitter Bootstrap, I ran into a strange problem of which I can\'t figure out the cause.

When I render an image using:



        
5条回答
  •  别那么骄傲
    2021-02-07 09:01

    The answer is not to use an tag and try to set a background-image in css.

    Either use a

    or and not an invalid mix of both.

    Credits to rblarsen who pointed this out.

提交回复
热议问题