当前位置: 代码迷 >> 综合 >> DIV1
  详细解决方案

DIV1

热度:16   发布时间:2023-11-25 02:56:13.0

注意:行内标签无法居中,如需居中可使用 dispaly:block,将行内元素变为块元素。
top/left/right/bottom:设置盒子与父盒子距离
position:定位
display:flex 将盒子变为弹性盒子
justify-content:center 水平居中
align-item:center 垂直居中
transfrom:translate(x,y)相对于盒子自身位移
vertical-align:top将文字居于顶部 middle:将文字居于中间 bottom:将文字居于底部

margin:外边距
border:边框
border-style:边框样式,默认为 none,不显示