For different browser kernels, for different kernels

Source: Internet
Author: User

For different browser kernels, for different kernels

Different browser kernels:
Suggestion: writing code as much as possible can effectively improve learning efficiency and depth.
The browser type is diverse. It is more selective and competitive for browser users. It plays a significant role in providing better features, but it is a nightmare for developers, in CSS, some attributes are written in W3C and cannot take effect in some browsers. You need to write them in a browser kernel. The following lists the methods used in various browsers:

-Webkit // Webkit kernel, such as Google and Safari-moz // Gecko kernel, such as Firefox-o // Presto kernel, such as operabrowser-ms // Trident kernel, such as IE

That is to say, you can add the prefix listed above before the corresponding attribute name.
The code example is as follows:

<! DOCTYPE html>  

The above Code only has a rounded corner effect in a Webkit-based browser, but not in other kernel-based browsers.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 3372.

For more information, see: http://www.softwhy.com/divcss/

Related Article

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.