如何在 CSS 中制作有光泽的颜色。
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27730301/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Make Glossy Colors in CSS.
提问by Muhammad Baber Zaman
I want to make Gold Glossy Color Background using Gold and Silver colors. I don't know how to make that.. I have made Gradient and i can make only gradient. Can anyone please help me to make Gold Glossy Color.. Or any color with Gloss Effects as we can make images in Photoshop with Glossy effect.. I want to make Glossy Background colors in CSS..
我想使用金色和银色制作金色光泽色背景。我不知道怎么做。我已经做了渐变,我只能做渐变。任何人都可以帮我制作金色光泽颜色.. 或任何具有光泽效果的颜色,因为我们可以在 Photoshop 中制作具有光泽效果的图像.. 我想在 CSS 中制作光泽背景颜色..
采纳答案by skoumas
You can do a CSS gradient inside the CSS file. This is how.
你可以在 CSS 文件中做一个 CSS 渐变。这是如何。
You can use the CSS command
您可以使用 CSS 命令
background: -moz-linear-gradient(top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */
If you want a genarator to do that for you, I am using this http://www.colorzilla.com/gradient-editor/
如果你想让发电机为你做这件事,我正在使用这个 http://www.colorzilla.com/gradient-editor/
Or you can create one on your own.
或者您可以自己创建一个。
When you generate the CSS code that runs pretty much in most browsers nowtimes you can then copy paste it into your CSS style and have gradient graphics on the spot avoiding generating images.
当您生成现在几乎在大多数浏览器中运行的 CSS 代码时,您可以将其复制粘贴到您的 CSS 样式中,并在现场使用渐变图形,从而避免生成图像。
I hope that helped.
我希望这有帮助。