CSS mystery: Width being set to 0px without any CSS rules?

前端 未结 3 1249
不知归路
不知归路 2020-12-19 23:03

So, check out this screenshot of a page I\'m working on in Chrome Developer Tools:

The top rule in \'Matched CSS Rules\' suggests that the width of the elemen

3条回答
  •  离开以前
    2020-12-20 00:01

    Since this is a display: inline element you can't set it's width. Try display: inline-block.

提交回复
热议问题