【发布时间】:2021-12-09 19:18:42
【问题描述】:
【问题讨论】:
-
因为如你所见,它是无效的
-
改成border-radius:0;
【问题讨论】:
正如 KK 正确提到的,CSS 边框半径属性的默认值为 0。'none' 是不允许的值。
请看这里: https://www.w3schools.com/cssref/css3_pr_border-radius.asp
当像下面这样使用时,它会设置所有四个区域(上、下、左、右)的半径: 边界半径:0
当在您的示例中使用时,它是单独指定每个区域的 CSS 简写。
【讨论】: