Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看起来这应该很容易。如何使用 sass 从列表中获取最小/最大值?
$max-value: max(10, 20, 30); // returns 30 $list: 10, 20, 30; $max-value: max($list); // Syntax error: (10, 20, 30) is not a number for `max'
我认为这可以满足您的要求:
$max-value: max($list...);