第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

布局的那些事兒

布局的那些事兒

你造嗎_ 2016-02-02 17:42:33
<!DOCTYPE html><html><head> <title></title></head><style type="text/css"> .a{ width: 1000px; background-color: #333; overflow: auto; } .z{ width: 33.3333%; float: left; height: 100px; border: 1px solid red; } .x{ width: 33.3333%; height: 100px; float: left; border: 1px solid yellow; } .c{ width: 33.3333%; height: 100px; float: left; border: 1px solid #fff; }</style><body><div class="a"> <div class="z"></div> <div class="x"></div> <div class="c"></div></div></body></html>在不影響寬度的情況下 ? ?讓div。c ?浮動上去。 ?我依稀記得有一條屬性可以做到,現(xiàn)在不記得了
查看完整描述

6 回答

?
愁晴

TA貢獻4條經(jīng)驗 獲得超2個贊

<!DOCTYPE html>

<html>

<head>

? ? <meta charset="UTF-8">

? ? <title></title>

? ? <style type="text/css">

? ? ? ? .a{

? ? ? ? ? ? width: 1000px;

? ? ? ? ? ? background-color: #333;

? ? ? ? ? ? overflow: auto;

? ? ? ? ? ??

? ? ? ? ? ? -webkit-columns:3;

? ? ? ? ? ? -moz-columns:3;

? ? ? ? ? ? columns:3;


? ? ? ? ? ? -webkit-column-gap:0;

? ? ? ? ? ? -moz-column-gap:0;

? ? ? ? ? ? column-gap:0;

? ? ? ? }

? ? ? ? .z{

? ? ? ? ? ? height: 100px;

? ? ? ? ? ? border: 1px solid red;

? ? ? ? }

? ? ? ? .x{

? ? ? ? ? ? height: 100px;

? ? ? ? ? ? border: 1px solid yellow;

? ? ? ? }

? ? ? ? .c{

? ? ? ? ? ? height: 100px;

? ? ? ? ? ? border: 1px solid #fff;

? ? ? ? }

? ? </style>

</head>

<body>

<div>

? ? <div></div>

? ? <div></div>

? ? <div></div>

</div>

</body>

</html>


這是代碼!


查看完整回答
反對 回復(fù) 2016-02-16
?
一步十年

TA貢獻11條經(jīng)驗 獲得超0個贊

邊框也算寬,3條邊框總共占了6px,3個百分比+6px總長超盒子1000px了,在不影響寬度的情況下 ? ?讓div。c ?浮動。把邊框改成background顏色就行了,如果你硬要那樣弄是無法實現(xiàn),代碼問題。再說寬度搞百分比小數(shù)個人覺得好奇怪,根本就達不到前端精確的要求、要么改成

<style type="text/css">

.a{

width: 1000px;

background-color: blue;


}

.z{

width: 30%;

float: left;

height: 100px;

border: 1px solid red;

}

.x{

width: 394px;

height: 100px;

float: left;

border: 1px solid yellow;

}

.c{

width: 30%;

height: 100px;

float: left;

border: 1px solid green;

}

</style>

body部分不變,你看下吧

查看完整回答
反對 回復(fù) 2016-02-15
?
小小酥1992

TA貢獻6條經(jīng)驗 獲得超2個贊

你3個盒子的左右邊框就占了6px;如果你還是用33.333%,怎么可能還夠位置放呢?

查看完整回答
反對 回復(fù) 2016-02-15
?
X_xiaob

TA貢獻2條經(jīng)驗 獲得超0個贊

你確定你的CSS有錯誤 ? ? ? ? ?33.333%*3=99.999 ? ? ?但是你的子DIV中有邊框啊1px*3 ?

查看完整回答
反對 回復(fù) 2016-02-08
  • 6 回答
  • 0 關(guān)注
  • 1822 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號