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

后端 未结 5 662
长情又很酷
长情又很酷 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 08:56

    using the image as a background. Why not set it as the src property of the button

    
    

    When you set the type as image the input expects an src attribute as well..

    Reference: http://www.w3.org/TR/html401/interact/forms.html#adef-src and http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1

提交回复
热议问题