Why doesn't my div inside a span work properly?

前端 未结 7 1787
猫巷女王i
猫巷女王i 2020-12-18 23:46

I\'m writing the following HTML markup:

 Some Text
    
татата

and s

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-18 23:53

    By default div's is a block element and span is an inline element. Block elements always flow vertically and inline elements always flow next to each other from top left to the bottom right depends on screen width. We can use inline elements under the block element, not vice versa. If we override we expect to see some issues like this on responsive layout.

提交回复
热议问题