简体   繁体   English

CSS线性渐变角

[英]CSS Linear Gradient angle

If I specify 70° in my linear gradient function, does that mean 70° from the y-axis clockwise or 70° from the x-axis counterclockwise/20° from the y-axis clockwise. 如果我在线性梯度函数中指定70°,是指与y轴顺时针70°或与x轴逆时针70°/与y轴顺时针20°。 Both seem to have been supported at some point... 两者似乎都在某个时候得到了支持...

好的,似乎在现代浏览器中,70°表示与y轴成顺时针方向为70°,而较旧的浏览器实现了较早的,带有前缀的规范,则会将此解释为与y轴成顺时针为20°。

According to the documentation , its basis is from the y-axis. 根据文档 ,其基础是y轴。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM