Home > Web Front-end > HTML Tutorial > ie7下li显示不正常,怎么破?_html/css_WEB-ITnose

ie7下li显示不正常,怎么破?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:18:47
Original
1162 people have browsed it

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><style>li{ list-style:none}.fenleiul li{ float:left; width:auto; border:solid 1px #FF0000 }</style></head><body><div style="width:200px;"><ul class=fenleiul><li>首页</li><li>精选版块</li><li>论坛帮助</li><li>论坛牛人</li><li>论坛地图</li><li>专家问答</li></ul></div></body></html>
Copy after login

ie8下是正常的如下图

ie7 下不行 是这样

怎么样在ie7下正常显示? div的宽度是固定的200px。不能改动


回复讨论(解决方案)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><style>li{ list-style:none}.fenleiul li{ float:left; width:auto; border:solid 1px #FF0000;white-space: nowrap;}</style></head><body><div style="width:200px;"><ul class=fenleiul><li>首页</li><li>精选版块</li><li>论坛帮助</li><li>论坛牛人</li><li>论坛地图</li><li>专家问答</li></ul></div></body></html>
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