課程
/前端開發(fā)
/HTML/CSS
/HTML5和CSS3扁平化風(fēng)格博客
如何解決?
2015-09-30
源自:HTML5和CSS3扁平化風(fēng)格博客 3-6
正在回答
清除浮動(dòng)試試
只要清除浮動(dòng)就行了
chasonma
已經(jīng)解決了,謝謝
_fate_
代碼具體一點(diǎn),最好把所有的代碼都貼出來
.gray_section{
? ?background-color: #252f34;
? ?font-size: 0px;
}
.gray_section:after{
content: "";
display:block;
clear: both;
.article_pre{
width: 100%;
.article_pre:nth-child(odd){
? ? background-color: rgba(255,255,255,0.03);
.img_section
{
width: 45%;
float: left;
.img_section img{
.article_pre .text_section{
width: 55%;
color: #fff;
position: relative;
top: 68px;
left: 50px;
.article_pre .text_section h2{
font-size: 20px;
margin: 20px;
貼代碼,不然誰也不知道你是咋coding的
舉報(bào)
HTML5與CSS3搭建超酷扁平化風(fēng)格博客
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-10-26
清除浮動(dòng)試試
2015-10-07
只要清除浮動(dòng)就行了
2015-09-30
已經(jīng)解決了,謝謝
2015-09-30
代碼具體一點(diǎn),最好把所有的代碼都貼出來
2015-09-30
.gray_section{
? ?background-color: #252f34;
? ?font-size: 0px;
}
.gray_section:after{
content: "";
display:block;
clear: both;
}
.article_pre{
width: 100%;
}
.article_pre:nth-child(odd){
? ? background-color: rgba(255,255,255,0.03);
}
.img_section
{
width: 45%;
float: left;
}
.img_section img{
width: 100%;
}
.article_pre .text_section{
width: 55%;
float: left;
color: #fff;
position: relative;
top: 68px;
left: 50px;
}
.article_pre .text_section h2{
font-size: 20px;
margin: 20px;
}
2015-09-30
貼代碼,不然誰也不知道你是咋coding的