Stop text from wrapping around image

前端 未结 5 1279
没有蜡笔的小新
没有蜡笔的小新 2021-02-03 14:24

I want to stop text from wrapping around image. Is there any way to do this without using margin?

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-03 14:41

    Put your img in a wrapper DIV and clear that

    CSS:

    .wrapper{
        clear:both;
    }
    

    HTML:

    text here. text here...

    Here's the JsFiddle

    Or, simply remove all CSS and put "
    " after the image:


    JsFiddle here

提交回复
热议问题