怎样使网页设计中的css盒子内容居中?

怎样使网页设计中的css盒子内容居中?

网页设计中的css盒子内容居中,你可以先写2个div,第一个包裹着第二个,然后在设置第一个的宽高,在通过margin:0 auto;居中就行,margin的意思就是距离浏览器的外边距,如图:这里我写段代码:&lthtml&
html-css230