Home > Web Front-end > HTML Tutorial > 如何让IE8中的空白字符自动换行?_html/css_WEB-ITnose

如何让IE8中的空白字符自动换行?_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:25:58
Original
1417 people have browsed it

火狐下是这样的:

IE8下是这样的


有underline的地方用了空白字符,代码是这样的:

<span class="underline">                                                                                         </span>
Copy after login

.underline class里面只有一句:text-decoration: underline;
怎么让IE8实现火狐这样的效果?


回复讨论(解决方案)


有其它的解决办法吗

下面这段代码,在firefox里面和IE8里面的现实效果是不一样的。我希望IE8中的现实效果和firefox一样。

<style>.underline{text-decoration: underline}</style><table width="200">    <tr>        <td width="200">			1<span class="underline">                                                                                                                                                                                                                                                                                 </span>.		</td>	</tr></table>
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template