【发布时间】:2015-10-27 11:02:05
【问题描述】:
我有一个包含 3 个 div 的简单 html 布局。 div 由边界线分隔。中间的 div 有很长的文字。我通过应用样式 word-wrap:break-word 来打破长文本。问题在于 window resize(当窗口尺寸较小时),文本与边框线重叠。这仅在 IE(版本 11)上发生,但适用于 chrome 和 FF。
请告知如何解决 IE 上的窗口调整大小文本对齐问题。 这是html:
<html>
<body>
<div style="border-right-style: solid;border-width:1px;">
text goes here
</div>
<div style="border-right-style: solid;border-width:1px;">
<span style="word-wrap:break-word;"> XX-standard-com.longtext.nogoodexperience.howtoresolve_nofix.yyy</span>
</div>
<div>
XX-standard-com.longtext.nogoodexperience.howtoresolve_nofix.yyy
</div>
</body>
</html>
【问题讨论】:
标签: css internet-explorer resize window word-wrap