我需要圍繞圖像包裝文本,這個文本可能包含一個很長的單詞(藥品名稱)。 我正在做顯而易見的事情,並嘗試了其他一些事情,但這是我目前的代碼的外觀。html包裝和打破圖像周圍的文字
<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上,但圖像:(下。
工作就像一個魅力!謝謝!! – SergioM