ホームページ  >  記事  >  ウェブフロントエンド  >  ページのレイアウト方法 100%_html/css_WEB-ITnose

ページのレイアウト方法 100%_html/css_WEB-ITnose

WBOY
WBOYオリジナル
2016-06-21 09:47:311229ブラウズ

<!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>

div="head_right" をさまざまな解像度で width=100% で全画面表示する方法を教えてください


ディスカッションへの返信 (解決策)

.head_right{
width:100%;
height:123px; ;
float: left;
background:#09C;
並べて表示したい場合は、

width:100%;

height:#09C; }

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。