如何使div根据里面内容而改变大小

1.display: inline-block;

2.width: auto; height: auto;

猜你喜欢

转载自blog.csdn.net/zcy_csdn123/article/details/80244601