How do I prevent DIV tag starting a new line?

后端 未结 9 1824
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 18:42

I want to output a single line of text to the browser that contains a tag. When this is rendered it appears that the DIV causes a new line. How can I include the content in

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 19:26

    div is a block element, which always takes up its own line.

    use the span tag instead

提交回复
热议问题