What's the difference between HTML's and CSS's width attribute?

后端 未结 7 1985
走了就别回头了
走了就别回头了 2020-11-29 07:49

The codes can be found here:

http://www.w3schools.com/css/tryit.asp?filename=trycss_float_elements




&l         


        
7条回答
  •  生来不讨喜
    2020-11-29 08:28

    first see this demo

    Notice the border given to the images,in the last case, the border has been set inline and it shows the inline border-color but in case of the width, its taking the one set in css and not the inline.

    So as mentioned in the link provided by the BOLTCLOCK, i assume it all depends on the selector's specificity

提交回复
热议问题