分类: 电脑/网络 >> 程序设计 >> 其他编程语言
问题描述:
我写了段CSS,但是左边的和右边的是在同一行,但右边的跑下边一行了,请教了
CSS代码 ---------------------------------
#icon_left {
height: 72px;
width: 60px;
font-family: Verdana, Arial, Helvetica, sans-serif, "宋体";
font-size: 12px;
font-weight: normal;
text-align: center;
line-height: 20px;
float: left;
}
#icon_middle {
height: 72px;
width: 60px;
font-family: Verdana, Arial, Helvetica, sans-serif, "宋体";
font-size: 12px;
font-weight: normal;
text-align: center;
line-height: 20px;
margin-right: auto;
margin-left: auto;
}
#icon_right {
height: 72px;
width: 60px;
font-family: Verdana, Arial, Helvetica, sans-serif, "宋体";
font-size: 12px;
font-weight: normal;
text-align: center;
line-height: 20px;
float: right;
}
DIV代码 -----------------------------------