Home > Web Front-end > HTML Tutorial > 页面怎么100%布局_html/css_WEB-ITnose

页面怎么100%布局_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:47:31
Original
1275 people have browsed it

<!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-8" /><title>head_right怎么在不同分辨率全屏显示</title><style type="text/css">*{   list-style:none;   margin:0;   padding:0;  }.div{    width:100%;    }.head{    width:100%;    height:123px;    background:#066;    }.head_left{    width:181px;    height:123px;    float:left;    background:#096;    }.head_right{    width:85%;    height:123px;    float:left;    background:#09C;    }</style>  </head><body>  <div class="div"> <div class="head">  <div class="head_left">   左边  </div>  <div class="head_right">  右边  </div> </div> </div></body></html>
Copy after login

请问下 div="head_right"怎么在不同分辨率都是width=100%全屏显示


回复讨论(解决方案)

.head_right{
    width:100%;
    height:123px;
    float:left;
    background:#09C;
    }

要并排的话,去掉  float:left;
.head_right{
    width:100%;
    height:123px;
    background:#09C;
   }

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