h2标题自动消失,求解
/*第二屏*/ .gray-section{ background:#252F34; color:#fff; } .article-preview:nth-child(odd){ background:rgba(255,255,255,0.05); } /*图片区域*/ .gray-section .img-section{ width:45%; } .img-section img{ width:100%; } .article-preview > div{ float:left; } /*清除浮动*/ .article-preview:after{ content:''; display:block; clear:both; } /*文字区域*/ .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;
}
这个加font-size:0; 结果h2标题就会消息,求看看 是代码哪里有问题