Heim > Artikel > Web-Frontend > ie7下li显示不正常,怎么破?_html/css_WEB-ITnose
<!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>
<!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>