---
title: "暂时感觉IE6这个莫名的bug..."
author: "caiceclb"
date: "2010-06-08T15:43:04Z"
tags: []
categories: ["Web前端"]
slug: "ie6-bug"
draft: false
lastmod: "2010-06-08T15:48:18Z"
id: 687072
url: "https://caiceclb.iteye.com/blog/687072"
---

<div style="position:relative;width:300px;height:200px;background:#3e8f9d;">
	<div style="float:right;margin:10px 10px 0;height:170px;
	<span style="color:red">width:280px;</span>background:green;">
		这个奇怪的层。
	</div>
	<p style="position:absolute;bottom:0;right:0;
	width:50px;height:30px;background:#000;color:#fff">字呢?</p>
</div>



问题的关键是标红的宽度，设置小一些，使width+marginLeft+marginRight小于父元素内部宽度, p就回来了。


Mark吧....