Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何避免混乱的形成?_Html_Css - Fatal编程技术网

Html 如何避免混乱的形成?

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:

我用矩形和div创建了一个字段。当我把一些内容放入矩形div时,格式化就搞砸了。如何修复它

将垂直对齐属性添加到.cell规则集中,将其属性设置为基线以外的任何值。例如:

.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;
}