<style type="text/css">
/*reset*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{
margin: 0;padding: 0;list-style: none;font-size: 12px;
font-family: "Arial", "sans-serif", "微软雅黑", "宋体", "Tahoma";}
a{cursor: pointer;text-decoration: none}
/*reset*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{
margin: 0;padding: 0;list-style: none;font-size: 12px;
font-family: "Arial", "sans-serif", "微软雅黑", "宋体", "Tahoma";}
a{cursor: pointer;text-decoration: none}
ul{list-style:none}
*{margin:0; padding:0;}
li h3{text-align:center; font-size:14px; font-weight:400;}
li{display:block;
height:31px;
line-height:31px;
border-bottom:1px solid #dedede ;
overflow:hidden;
}
.cat{background:#f8f8f8; width:150px;border: 1px solid #a9a9a9;margin:10px;}
*{margin:0; padding:0;}
li h3{text-align:center; font-size:14px; font-weight:400;}
li{display:block;
height:31px;
line-height:31px;
border-bottom:1px solid #dedede ;
overflow:hidden;
}
.cat{background:#f8f8f8; width:150px;border: 1px solid #a9a9a9;margin:10px;}
float就直接把元素转换为块级元素了吧,这个是不是就可以直接设置宽高了?或者不设置为float,直接设置成inline-block,然后设置宽高,不知道行不行。。。
2015-12-08