一个跨度是一个内联元素,而div是一个块元素。是否有“本机”(X)HTML / HTML5内嵌块元素可以像容器一样运行? (不应用CSS)
定义:
block
This value causes an element to generate a block Box.
inline-block
This value causes an element to generate an inline-level
block container. The inside of an inline-block is formatted as a block
Box,and the element itself is formatted as an atomic inline-level
Box.
inline
This value causes an element to generate one or more
inline Boxes.
解决方法
不,那里没有。你必须明确地指定内嵌块。