Maison >interface Web >tutoriel HTML >初学HTML 有个简单的小问题帮忙看一下_html/css_WEB-ITnose
<!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;}