20151210 minor Problems

Source: Internet
Author: User

1. Roller events:

IE and chrome support OnMouseWheel (attribute DOM2 level), and FF supports Dommousescroll (DOM3 level), and DOM events can only be used with addeventlistener bindings. While AddEventListener is a standard browser support, ie low version is not supported, so you can do a package of mouse wheel events.

About the direction of the mouse wheel, IE and chrome support event objects. Wheeldelta, up to 120, down to-120; The FF supports event objects. Detail, up to-3, down to 3.

When the default behavior is canceled, events bound with AddEventListener must be used: Use the event object under standard browsers. Preventdefault; in the lower version of IE, use the event object. Returnvalue=false;

Filter:alpha () Transparency in 2.CSS

With Alpha you can set the transparency, Filter:alpha is not a problem under IE, you need to use-moz-opacity to support ff.

The Alpha property is allowed to set the transparency of the element, the parameters are

Filter:alpha (opacity=, finishopacity=, style=?, startx=?, starty=?, finishx=?, finishy=?)

Where opacity: Set the transparency level, range 0-100, 0 for full transparency, and 100 for full opacity.

Finishopacity: When you set the transparency effect of a gradient, you specify the transparency at the end, ranging from 0 to 100.

Style: Sets the gradient transparency style, with a value of 0 for the uniform shape, 1 for the line, 2 for radial, and 3 for the rectangle.

StartX and Starty: Represents the start x and y coordinates of the gradient transparency effect.

For IE browser, the above method is not a problem, for FF, it is written-moz-opacity:0.8; Standard browser write opacity:0.8;

IE uses private attribute filter:alpha (opacity), Moz family uses private attribute-moz-opacity, whereas the standard attribute is opacity (Css3,moz family section supports CSS3)

20151210 minor Problems

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.