你確實是還沒走好就想跑。你怎么知道一開始就有復用的樣式?一眼就看出來了??看別人寫的簡單,也容易發現別人的不足的地方。一旦自己寫,都不知道從何寫起,因為你沒有思路,沒有整體的想法,上來就寫,結果一團糟,還一直問十萬個為什么。
2017-01-02
/*在此定義相關CSS樣式*/
.topList{height:180px;width:400px;border:1px solid #8e8e8e;}
li{
list-style-type:none;
}
a{
text-decoration:none;
}
p{
margin:10px 2px;
}
.top em{background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg) no-repeat;}
em{float:left;padding:2px;}
.topList{height:180px;width:400px;border:1px solid #8e8e8e;}
li{
list-style-type:none;
}
a{
text-decoration:none;
}
p{
margin:10px 2px;
}
.top em{background:url(http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg) no-repeat;}
em{float:left;padding:2px;}
在谷歌瀏覽器中會出現上面是加載圖片,下面是加載后的圖片,注銷overflow:hidden;就能正常顯示,然后撤銷注銷也能正常顯示了...
2016-12-23