Html 如何避免混乱的形成?
我用矩形和div创建了一个字段。当我把一些内容放入矩形div时,格式化就搞砸了。如何修复它 将垂直对齐属性添加到.cell规则集中,将其属性设置为基线以外的任何值。例如:Html 如何避免混乱的形成?,html,css,Html,Css,我用矩形和div创建了一个字段。当我把一些内容放入矩形div时,格式化就搞砸了。如何修复它 将垂直对齐属性添加到.cell规则集中,将其属性设置为基线以外的任何值。例如: .cell { vertical-align: top; background:#F593D1; width: 50px; height: 50px; border-radius:6px; border: 1px solid; -webkit-border-radius:
.cell {
vertical-align: top;
background:#F593D1;
width: 50px;
height: 50px;
border-radius:6px;
border: 1px solid;
-webkit-border-radius:6px;
-moz-border-radius:5px;
-khtml-border-radius:10px;
display:inline-block;
opacity: 0.7;
}
.添加溢出:隐藏;到顶部的单元格
或垂直对齐:顶部;到。牢房
.cell {
background:#F593D1;
Width:50px;
Height:50px;
border-radius:6px;
border: 1px solid;
-webkit-border-radius:6px;
-moz-border-radius:5px;
-khtml-border-radius:10px;
display:inline-block;
opacity: 0.7;
}
.cell {
vertical-align: top;
background:#F593D1;
width: 50px;
height: 50px;
border-radius:6px;
border: 1px solid;
-webkit-border-radius:6px;
-moz-border-radius:5px;
-khtml-border-radius:10px;
display:inline-block;
opacity: 0.7;
}
.top_cell {
margin-top: 10px;
overflow:hidden;
}
.cell {
background:#F593D1;
width:50px;
height:50px;
border-radius:6px;
border: 1px solid;
-webkit-border-radius:6px;
-moz-border-radius:5px;
-khtml-border-radius:10px;
display:inline-block;
opacity: 0.7;
vertical-align: top;
}