多项选择题
水平居中的方法?()
A.元素为行内元素,设置父元素text-align:center
B.如果元素宽度固定,可以设置左右margin为auto;
C.如果元素为绝对定位,设置父元素position为relative,元素设left:0;right:0;margin:auto;
D.使用flex-box布局,指定justify-content属性为center
点击查看答案
相关考题
