Home >Web Front-end >HTML Tutorial >css position 问题_html/css_WEB-ITnose

css position 问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:31:50922browse

<!DOCTYPE HTML><html>	<head>		<meta charset="gb2312" />		<title></title>		<style>			*{margin:0; padding:0;}			.a {				position:absolute; top:0; right:0;			}			.b {				position:relative; top:0; right:-55px;				width:100px; height:100px; 				border:1px solid red;			}					</style>	</head>	<body style="height:1000px;">		<div class="a">			<div class="b"></div>		</div>	</body></html>


ie6下 红框 能被右侧 遮挡一半 并且 不出出现底部的横向滚动条,
但在 ff 下会出现,怎么解决。
不使用 body {overflow:hidden;}


回复讨论(解决方案)

.a{overflow:hidden}

.a{overflow:hidden}
++

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