前端页面首先把这些加上,清除样式与浮动
/ 清除样式 /
{
margin:0; / 外边距清零 /
padding:0; / 内边距清零 /
}
body,html{
font:16px “微软雅黑”,Arial; / 设置全局基础字号 /
scroll=“no”;
}
h1,h2,h3,h4,h5,h6,b,strong{
font-weight:normal; / 清除文字加粗 /
font-size:100%;
}
i,em{
font-style:normal; / 清除倾斜 /
}
a{
text-decoration:none; / 清除文字样式 /
}
li{
list-style:none; / 清除列表项目符号 /
}
img{
vertical-align:top; / 清除图片与div’之间的空隙,图片向上垂直对齐 */
}
input{
outline:none;
}
{
margin:0; / 外边距清零 /
padding:0; / 内边距清零 /
}
body,html{
font:16px “微软雅黑”,Arial; / 设置全局基础字号 /
scroll=“no”;
}
h1,h2,h3,h4,h5,h6,b,strong{
font-weight:normal; / 清除文字加粗 /
font-size:100%;
}
i,em{
font-style:normal; / 清除倾斜 /
}
a{
text-decoration:none; / 清除文字样式 /
}
li{
list-style:none; / 清除列表项目符号 /
}
img{
vertical-align:top; / 清除图片与div’之间的空隙,图片向上垂直对齐 */
}
input{
outline:none;
}
–万能清除浮动法–