Css width above 100%

前端 未结 2 1012
时光说笑
时光说笑 2021-02-18 19:18

Is correct to specify a width greater than 100% ?

.class{
    width: 102%;
}
2条回答
  •  面向向阳花
    2021-02-18 20:20

    Yes, as per the CSS 2.1 Specification, all non-negative values are valid for width, that includes percentage values above 100%.

提交回复
热议问题