如何制作对角 css 渐变而不将颜色混合在一起(急剧的颜色变化),向右移动 70%?
我找不到任何 css 渐变颜色生成器可以完成我想要做的事情。 没有混合的对角渐变,只是从 #252525
到 #0099ff
(例如)的急剧颜色变化,两种颜色相交的线约为 70%容器的左侧,因此该线将从容器的 x 轴的一半以上开始,并且该线可能会在容器右侧的 y 轴的一半处结束。
如果您能够强调哪些数字专门用于计算倾斜度以及渐变开始的 xy 坐标,那将非常有帮助。我现在很困惑。
I can't find any css gradient color generators that do what i'm trying to do.
A diagonal gradient with no blending, just a sharp color change from #252525
to #0099ff
(for example), with the line where the two colors meet being about 70% from the left of the container, so the line would start a little more than halfway across the x axis of the container, and the line would end maybe halfway down the y axis of the right side of the container.
If you would be able to emphasize what numbers are specifically for calculating the degree of tilt, and the x y coordinates of the beginning of the gradient, that would be so extremely helpful. I'm just confused at this point.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论