Css width above 100%

前端 未结 2 1546
误落风尘
误落风尘 2021-02-18 19:36

Is correct to specify a width greater than 100% ?

.class{
    width: 102%;
}
2条回答
  •  生来不讨喜
    2021-02-18 20:07

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

提交回复
热议问题