我試圖做到的是這個 4格,最後一排雙層堆疊另一個DIV中
我在它目前的工作,只是不能得到它的權利,我開始2個jsfiddles試圖做到這一點,但沒有工作中。
verison 1:http://jsfiddle.net/ewa0nLjk/1/
.tutlist {
width:500px;
height:75px;
padding:5px;
background-color: #dddddd;
margin: 40px;
/*margin not required*/
}
.tutlist div {
background-color: #ff0000;
}
.left {
width: 75px;
float:left;
height:100%;
display: inline;
}
.middle {
width: 500px;
height:100%;
display: inline;
}
.right {
width: 120px;
float:right;
height:100%;
display: inline;
}
<div class="tutlist">
<div class="left">
<img src="https://c2.staticflickr.com/4/3726/13855354235_887ae071c0_s.jpg"/></div>
<div class="middle">how to send an email in php code testing it</div>
<div class="right">double</div>
</div>
版本2:http://jsfiddle.net/R65fA/1/
#header {
padding:5px;
background-color: #dddddd;
margin: 30px;
width:500px;
/*margin not required*/
}
.header-left {
width:75px;
display:inline;
float:left;
background:red;
}
.logo {
width:409px;
display:inline;
background:red;
}
.header-right {
width:75px;
background:red;
float:right;
display:inline;
}
#clear {
clear: both;
font-size: 0;
height: 0;
line-height: 0;
margin: 0;
padding: 0;
}
<div id="header">
<div class="header-left">
<img src="https://c2.staticflickr.com/4/3726/13855354235_887ae071c0_s.jpg"/>
</div>
<div class="logo">
how to send an email in php code testing it
</div>
<div class="header-right">
RIGHT
</div>
<div id="clear"> </div>
</div>
差不多我有3個div的,而最後一個div中有2周較小的div。如果有人能幫助我,我會遇到麻煩。
編輯:設置寬度自動的一個快速問題。
如何設置藍色來填充maininfo div的剩餘寬度?這是我的jsfiddle.net/4ykf5frk/2,我嘗試設置寬度:汽車
{ -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; }將改變邊界 – 2014-09-25 15:26:29
剛剛更新我的網頁,看看你剛剛做到了!無論如何,該代碼段+1! :) – 2014-09-25 15:28:17
@MrCoder我正在努力:) – emmanuel 2014-09-25 15:35:18