开发者

Is there any way to get border-radius to validate?

开发者 https://www.devze.com 2023-01-13 08:16 出处:网络
开发者_运维技巧Including the border-radius: num1 / num2; property gives a / is an incorrect operator error.
开发者_运维技巧

Including the border-radius: num1 / num2; property gives a / is an incorrect operator error.

Is there any way to get this to validate?


Take the '/' out. Instead of;

{border-radius: 1px / 2px;}

Do this;

{border-radius: 2px;}

That is the proper way to define border radius.

When in doubt, try http://border-radius.com/


Are you validating against 2.1 or 3? http://jigsaw.w3.org/css-validator/ If you click on the More you can change the profile to CSS 3

0

精彩评论

暂无评论...
验证码 换一张
取 消