Heim  >  Artikel  >  Web-Frontend  >  ie firefox 宽度不同_html/css_WEB-ITnose

ie firefox 宽度不同_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:11:38913Durchsuche




  • 1

  • 2

  • 3




firefox 里明显窄


回复讨论(解决方案)

<!DOCTYPE HTML><html>	<head>		<meta charset="gb2312" />		<title></title>		<style>			.top{width:1100px;height:90px;border:1px solid #000;margin:0px auto;}		</style>			</head>	<body>		<div class="top">			<ul>				<li>1</li>				<li>2</li>				<li>3</li>			</ul>		</div>	</body></html>



楼主试试,怎么窄了?

还是一样的窄

楼主是宽屏?

定义width为%就ok

<!DOCTYPE HTML><html>    <head>        <meta charset="gb2312" />        <title></title>        <style>            .top{width:96%;height:90px;border:1px solid #000;margin:0px auto;}        </style>            </head>    <body>        <div class="top">            <ul>                <li>1</li>                <li>2</li>                <li>3</li>            </ul>        </div>    </body></html>

楼主看下流浪器有没不小心被放大了,调整为100%

%就一样宽了

我的是电脑屏是宽屏的

但是不用%就不行吗?

不明白 楼主到底要实现什么效果?

不明白 楼主到底要实现什么效果?

我的意思就是我最上面的代码能让它在两种浏览器里显示宽度一样子


那就是 % 或 固定px

固定了px宽度就是不一样

我用IE6,7,8 Chrome,Safari,Opera,Firefox都是一样宽啊。。。

难道是我的firefox有问题??
重装个试试

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn