Home  >  Article  >  Web Front-end  >  IE与FF中换行的问题?_html/css_WEB-ITnose

IE与FF中换行的问题?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:49993browse

下面的第一张图片是FF中的效果,第二张图片是IE中的效果,怎么样使IE中也出现FF中效果呢?希望各位帮忙解答解答!谢谢!


整体代码如下:
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



无标题文档




           
  • RT @
               Reencoded
               :10+ Places Where #Designers Can Upload and Host Their Work for Free
               http://bit.ly/9PqzHu
               2:14 PM Feb 9th from web
           




回复讨论(解决方案)

IE下标签是不换行的,要是想换行的话,可以加个
标签,楼主可以试下以下代码:

       <ul>            <li>RT @                <a href="#">Reencoded</a>                :10+ Places Where #Designers Can Upload and Host Their Work for Free                <a href="#">http://bit.ly<br/>/9PqzHu</a>                <span>2:14 PM Feb 9th from web</span>            </li>        </ul>

CSDN居然会自动屏蔽换行符,就是把http://bit.ly/9PqzHu改成http://bit.ly
/9PqzHu试试。

换行 是以英文单词的整体性 来换行的。ie 的认识错了 把网址做为一个整体单词了。

我把各位朋友对我疑问的解答测试了下,a标签中的内容如果是网址的话在IE与FF中就会出现不同,正如3楼朋友所说的IE把网址作为一个整体单词,是不换行的,而FF中换行是根据网址中出现的第一个'/'符进行换行。为了使内容在IE与FF中呈现出一样的效果可以采用在相信的地方加个
标签即可,1楼这个方法简单又好用, ,谢谢各位了,上面这样总结不知道可不可以?


简单方便

Statement:
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