你确实是还没走好就想跑。你怎么知道一开始就有复用的样式?一眼就看出来了??看别人写的简单,也容易发现别人的不足的地方。一旦自己写,都不知道从何写起,因为你没有思路,没有整体的想法,上来就写,结果一团糟,还一直问十万个为什么。
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