. selector{font-family: "Microsoft Yahei", Microsoft Jas, "Microsoftjhenghei", Chinese fine black, Stheiti,mingliu}DescriptionPlus the Chinese name "Microsoft Jas Black" is to be compatible with opera.Microsoftjhenghei for Microsoft is black, Stheiti for the Chinese black body, MingLiU remember 11px under the Chinese has a remarkable effect.The English notation of Chinese fonts is recommended in CSS, with the following English names for common Chinese
How to organize css, write high-quality css code, and write high-quality css code
! How to organize cssI. css APIsIt is a basic part, and its capabilities are judged by "right" and "wrong.For example, if you set the text to red, y
.
2012-10-18 Update: Because Tahoma this font 12px looks really small, and then given the Helvetica performance in Apple's system, the Helvetica and Arial fonts are used by default, and Tahoma fonts are used for form elements. It's because the character is so weird that the form elements look pretty neat.
2012-11-06 Update: If your site is a blog class or need to paste code types will generally apply to the pre this element, so add the processing of
ArticleDirectory
1. Use reset but not global Reset
2. Good naming habits
3. Code abbreviations
4. Use CSS inheritance
5. Use multiple Selector
6. Proper code comments
7. Sort your CSS code
8. Keep CSS
The code format in css and the syntax structure of @ import, css @ import
Code Format in CSS
CSS is short for Cascading Style Sheet. It is a simple mechanism for adding styles to web documents and belongs to the layout language of
space.
Floating elements do not overlap.
This is also margin true in situations where negative values and the parent element have no remaining space.This is my understanding of Rule II and rule three in the floating section of the CSS Authoritative guide, and the following is the original text.
2. The left (or right) outer edge of a floated element must is to the right (or left) of the right (left) outer edge of a l Eft-floating (or right-floating)
be abbreviated as: Font: italic small-caps bold 1em/140% "lucida Grande", sans-serif;
Note: If you are short for font definition, you must at least define the font-size and font-family values.
List (lists)To cancel the default dot and serial number, you can write list-style: none ;,
The list attributes are as follows:
List-style-type: Square;List-style-position: inside;List-style-image: url(image.gif );Can be abbreviated as: List-style: square inside
Backend code farmers front-end (CSS) Lesson 1: CSS overview, backend cssI. Starting from playing a browser
Playing a browser is a meaningful part of Head First books. But the author forgot to tell us how to play the browser. Let's start from here.
It is the flowchart of html and css rendering by the webkit kernel.
Css code sorting and collection and css code collection
I have sorted out the css code that I have used before, and there may be many ways to implement one effect. Here I have sorted out the c
css| Tips | Optimize skin CSS files that have recently been seen by many netizens and found that they have a lot of redundant code. Let me tell you about how to clear these redundant code to make your CSS file more concise.
First, margin, padding properties
Referring to the
[Specification] Front-end code specifications-css specifications, and front-end code css specificationsEncoding
On the first line of css, set the file encoding to UTF-8.
@charset "UTF-8";Class Name
The class name should be as short and meaningful as possible. Use meaningful
Sample Code for dynamically loading and removing js/css files and css sample code
This article briefly introduces how to dynamically load, remove, and replace js/css files. Sometimes, when we write the front-end, there will be a need to dynamically load some East such as
Several ultra-refreshing CSS webpage color code and css color code
CSS: Several Refreshing Web page color codes
Original article: CSS several Refreshing Web page color codes
Source code
Use css to set a half-text style code example, css style code
Sample Code for setting a half-text style using css:Generally, when you set the text style and effect, the entire text will be effective. For example, if you set the color of the text, the entire text will change
JS + CSS-implemented pretty gradient background special effects code (6 gradient effects), css special effects code
This article describes the special background Effects of the beautiful gradient implemented by JS + CSS. We will share this with you for your reference. The de
CSS sets the background image code and css Background Image Code
CSS:It is not difficult to set the background image, but sometimes it will forget how to write the url format. The reason for writing this article is to let the reporter forget to query it and hope to provide some help.The
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.