h2標(biāo)題自動(dòng)消失,求解
/*第二屏*/ .gray-section{ background:#252F34; color:#fff; } .article-preview:nth-child(odd){ background:rgba(255,255,255,0.05); } /*圖片區(qū)域*/ .gray-section?.img-section{ width:45%; } .img-section?img{ width:100%; } .article-preview?>?div{ float:left; } /*清除浮動(dòng)*/ .article-preview:after{ content:''; display:block; clear:both; } /*文字區(qū)域*/ .gray-section?.text-section{ width:55%; } .text-section{ position:relative; top:68px; left:50px; } .text-section?h2{ margin-bottom:20px; } .text-section?p{ font-size:18px; letter-spacing:1px; } .text-section?.sub-heading{ font-size:22px; margin-top:0; } .text-section?>?*{ max-width:90%; }
各位年薪80w的童靴,這是什么問題啊,按照老師的教程,給
.article-preview > div{
float:left;
}
這個(gè)加font-size:0; ?結(jié)果h2標(biāo)題就會(huì)消息,求看看 是代碼哪里有問題
2017-09-07
我也是,但是不加font-size:0 又有間隙
2017-08-09
臥槽,突然就解決了,,,,可還是不懂這里是什么意思
2017-08-09
加入后,h2標(biāo)題,就會(huì)消失,找不到原因,求解?