开发者

How to display a list of <article> the same cross-browser?

开发者 https://www.devze.com 2023-02-11 19:07 出处:网络
Firefox and Opera seem to put article开发者_运维技巧s after each other while Chrome gives a line break after each one. Which one is correct and how would you get them display the preferred style the s

Firefox and Opera seem to put article开发者_运维技巧s after each other while Chrome gives a line break after each one. Which one is correct and how would you get them display the preferred style the same cross browser?

<html>
<body>

<article>
Item 1
</article>

<article>
Item 2
</article>

<article>
Item 3
</article>

<article>
Item 4
</article>

</body>
</html>

Opera 11.01

How to display a list of <article> the same cross-browser?

Chrome 9.0

How to display a list of <article> the same cross-browser?


You should set either display: inline or display:block in CSS. (whichever one you want)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号