图像大小可能会有所不同,但下面的文本不应超出演示的图像宽度
html
<img />
<p>some text</p>
错误的
+----------------------------+
| |
| |
| image |
| |
| |
| |
+----------------------------+
The result should not be this because overflowing the image width
正确的
+----------------------------+
| |
| |
| image |
| |
| |
| |
+----------------------------+
The result should be this
because its not overflowing
the image width
现在,如果我的图像更大,应该是这样的
+------------------------------------------------------+
| |
| |
| |
| |
| |
| |
| image |
| |
| |
| |
| |
| |
+------------------------------------------------------+
The result should be this because its not overflowing
the image width
任何想法?我应该如何标记或赋予样式?