图中各区域RGB颜色:
top:204 204 204
main:252 3 1
left: 0 0 254
right: 154 204 153
foot:255 102 52
使用方法:.top{ background-color: rgb(204,204,204); }
top:204 204 204
main:252 3 1
left: 0 0 254
right: 154 204 153
foot:255 102 52
使用方法:.top{ background-color: rgb(204,204,204); }
最新回答 / LittleLeeZi
参照定位的元素必须加入position:relative; 定位元素加入position:absolute,便可以使用top、bottom、left、right来进行偏移定位了。<...code...>
2016-12-25
已采纳回答 / 莫道相思尽
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-...
2016-12-23
.top{width:100%; height:100px; background:gray;}
.main{width:100%; height:300px; background:red;}
.right{width:100%; height:300px;margin-left:210px;position:absolute; background:green;}
.left{width:200px; height:300px;background:blue;}
.foot{width:100%;height:100px;background:orange;}
.main{width:100%; height:300px; background:red;}
.right{width:100%; height:300px;margin-left:210px;position:absolute; background:green;}
.left{width:200px; height:300px;background:blue;}
.foot{width:100%;height:100px;background:orange;}