小编Arc*_*t03的帖子

内容宽度 + 一定数量的像素与 calc()

我知道我可以做calc(100% + 15px),但是有没有办法做 calc("content width" + 15px)?

fit-content 和 auto 不起作用,这有点道理。

我有未知数量的项目,我只想获取他们需要的宽度(内联块)+ 一定数量的 px justify-content: space-between;

如果这不能用 calc 完成,有没有替代方法?

(如果有任何改变,我将使用 scss)

css sass width

5
推荐指数
2
解决办法
4800
查看次数

标签 统计

css ×1

sass ×1

width ×1