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

css position 问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:31:50
Original
923 people have browsed it

<!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>
Copy after login


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


回复讨论(解决方案)

.a{overflow:hidden}

.a{overflow:hidden}
++

Related labels:
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