【CSS】div宽度由内部文字宽度决定

默认 div 的宽度会占满全屏 或由父级决定 使用 width:fit-content; 可以解决 前后对比 前: 后:
posted on 2023-05-24 13:38  贲风  阅读(130)  评论(0编辑  收藏  举报