<!DOCTYPE html PUBLIC "-//W3C//Dli XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dli/xhtml1-transitional.dli"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><style type="text/css"> *{margin:0;padding:0} #one{width:800px;height:500px;background:blue;} #two{width:500px;height:300px;background:red;} #three{width:100px:height:100px;background:green;}</style></head><body> <div id = "one"> one <div id = "two"> two <div id = "three"> three </div> </div> </div></body>
FFもIEもこんな感じ
FFもIEもこんな感じ
#three{width:100px:height:100px;background:green;}
#three{width:100px;height:100px;background:green;}