display:inline resets height and width

后端 未结 4 1367

I have created example at http://jsfiddle.net/GKnkW/2/

html




    Test
 <         


        
4条回答
  •  无人及你
    2020-11-30 11:45

    Inline objects don't have heights or widths. Why are you setting them inline to begin with? You probably want to either float them or use display: inline-block.

提交回复
热议问题