いくつかの基本的なHTML/CSSに何か問題があります。私が間違っていることを知りたいのですか、スマートなやり方があるのかを知りたいですか?シンプルなHTML UIボックス
私は基本的に単純なUIを作成したいと思っていますが、これを作成しましたが、うまく動作しないようです。ブラウザウィンドウのサイズを変更する際、私が見るものの追加画面のグラブ -
<style type="text/css">
.box1
{
width:100%;
height:25%;
background-color:#eee;
}
.box2
{
width:60%;
height:56%;
background-color:#eee;
float:left;
margin-top:1%;
}
.box3
{
width:39%;
height:40%;
background-color:#eee;
margin-left:61%;
margin-top:1%;
}
.box4
{
width:39%;
height:14%;
background-color:#eee;
margin-left:61%;
margin-top:1%;
}
.box5
{
width:50%;
height:14%;
background-color:#eee;
float:left;
margin-top:1%;
}
.box6
{
width:49%;
height:14%;
background-color:#eee;
margin-left:51%;
margin-top:1%;
}
html,body{
height:100%;
//width:100%;
}
</style>
<div class="box1">
box1
</div>
<div class="box2">
box2
</div>
<div class="box3">
box3
</div>
<div class="box4">
box4
</div>
<div class="box5">
box5
</div>
<div class="box6">
box6
</div>
編集:Box4または6は、私は、ブラウザのウィンドウのサイズを変更する際に不正な動作をしているようです。 Attached Image
大変ありがとうございます。
スラッシュ。
これをもう少し微調整して、あなたができることを理解できませんでした.5%など - 私は最高になると思います。私とOCDはあなたにありがとう。 – slash85