我需要在图像周围环绕文本,该文本可能包含一个很长的单词(药物名称)。我正在做显而易见的事情,并且一直在尝试其他一些事情,但这就是我当前代码的外观。
<div style='width:120px;'>
<img scr="myImage.png" style='float:right;width:50px;'>
<p style='word-wrap:break-word;'>This_is_the_very_long_word_without_hyphens_I_need_to_wrap_.</p>
<p>This is a normal paragraph of text that needs to flow around the image if there is space available. Leaving the option of tables out of question and specially because the height of the image may vary and don't want a huge white space between the paragraphs.</p>
<div>
所以,这个词将包裹在 div 上,但在图像下面:(。