-WebKit margin before is the definition method statement of article segment P container in css3.0.
Display: block only defines the P container as a block
And: – WebKit margin before/after: 1em — defines the upper margin and the lower margin of P respectively, which are 1 times the height of the font. If it is a 10px word, then the margin is 10px
-WebKit margin start/end: 0px — define the P container as 0px for both left and right margins.
In other words, in CSS3:
Equivalent to CSS2:
But because CSS3 requires a higher browser version, there is no popular CSS3 style in China, and CSS2 is still the mainstream, but it should be the world of CSS3 in the future, because it represents advanced technology.
Common: – WebKit – (chrome), –
Why a private prefix
W3C, the organization that formulates HTML and CSS standards, is very slow. Usually, members of W3C organizations put forward a new attribute, such as rounded border radius, which everyone thinks is good. However, W3C will not formulate standards for this attribute. Instead, it has to go through complex procedures and go through a lot of reviews. Browser vendors are not willing to wait so long. They think that an attribute is enough When you are familiar with it, you will add support to the browser. However, to avoid the W3C publishing the standard in the future, let the new version of the browser support the border radius attribute after the standard writing of border radius is established.
For example, chrome 10 doesn’t recognize the border radius writing method. It can only use – WebKit border radius, but chrome 12 can recognize it. Therefore, when writing CSS, it can ensure that the web pages of chrome 10 and 12 can be displayed normally.
- The usage of WebKit text size adjust
- YUI RESET CSS && YUI FONT CSS
- Summary of WebKit compiling on Windows platform
- Summary of internationally renowned CSS Reset
- DOM style setting methods in the four components of react
- Ubuntu 14.04 UNK : How to Install Pepper Flash Player For Chromiu
- Solve the problem that Chrome browser cannot automatically call Aliwangwang client chat software
- How to Solve “Opera browser cannot play web video” Issue
- -WebKit tap highlight color processing elements click the default highlight