CSS3 of the Firefox&safari background gradient-[front-end technology] [turn]

Source: Internet
Author: User
Tags x2 y2

The gradient background under the Firefox browser Firefox3.6

Background:-moz-linear-gradient (top, Red, RGBA (0, 0, 255, 0.5));


Gradient background implementation under Chrome/safari browser SAFARI4
Background:-webkit-gradient (linear, 0 0, 0 bottom, from (#ff0000), to (RGBA (0, 0, 255, 0.5)));

Comprehensive – Compatibility gradient background effect
Filter:alpha (opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) Progid:D XImageTransform.Microsoft.gradient (startcolorstr=red,endcolorstr=blue,gradienttype=0);
-ms-filter:alpha (opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) Progid:D XImageTransform.Microsoft.gradient (startcolorstr=red,endcolorstr=blue,gradienttype=0);/*ie8*/
background:red; /* Some browsers that do not support background gradients */
Background:-moz-linear-gradient (top, Red, RGBA (0, 0, 255, 0.5));
Background:-webkit-gradient (linear, 0 0, 0 bottom, from (#ff0000), to (RGBA (0, 0, 255, 0.5)));

-webkit-gradient (type,x1 y1, X2 y2, from (start color value), [Color-stop (Position offset-decimal, docked color value),...],to (end color value));

CSS3 Firefox&safari Background gradient contention-[front-end technology] [go]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.