definitions multiple times. This can save a lot of bytes.For example, to define the font, color, and margin of any title, you can write as follows:H1, H2, H3, H4, H5, H6 {Font-family: lucida Grande, lucida, Arial, Helvetica, sans-serif;Color: #333;Margin: 1em 0;}If some elements need to define a separate style during use, you can add a new definition to overwrit
) #333;
If you add quotation marks, some browser errors may occur.
11. Group selectors)
When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes.
For example, to define the font, color, and margin of all titles, you can write as follows:
H1, H2, H3, H4, H5, H6 {
Font-family: lucida Grande, lucida
are not required. For example:
Background: URL (images/***. GIF) #333;
Can be written
Background: URL (images/***. GIF) #333;
If you add quotation marks, some browser errors may occur.
11. Group selectors)
When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes.
For example, to define the font, color, and margin of all titles, you can write as follows:
I divided the Forum homepage into the header area, information area, content area, and footer area. First, use a large Div to include these items, mainly considering the convenience of the overall page adjustment. For example, to adjust them to a wide screen or a narrow screen, you just need to set this large Div.
First
Code Paste it for debugging and use by friends.
CSS:
Copy code The Code is as follows:/* CSS document */
Body {
Background-color: # f5f5f5;
Margin: 0;
Padding: 0;
Font-family:
/***. GIF) #333; If you add quotation marks, some browser errors may occur. 11. Group selectors)When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes. For example, to define the font, color, and margin of all titles, you can write as follows: H1, H2, H3, H4, H5, H6 {Font-family: lucida Grande,
(selectors)
When some element types, classes, or IDs have common attributes, you can use the group selector to avoid multiple duplicate definitions. This can save a lot of bytes.
For example, to define the font, color, and margin of all headings, you can write this:
H1,h2,h3,h4,h5,h6 {
font-family: "Lucida Grande", Lucida,arial,helvetica,sans-serif;
Co
First, change the MATPLOTLIBRC file (permanent solution) 1. Locating MATPLOTLIBRC FilesThe file is located under the [python_install_dir]\lib\site-packages\matplotlib\mpl-data folder.2. Change the contents of the Matplotlibrc file.MATPLOTLIBRC file part of the content such as the following:font.family : sans-serif #默认情况下。该字段为关闭状态。去掉凝视就可以。font.sans-serif : Microsoft YaHei , Bitstream Vera Sans
selectors)When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes.For example, to define the font, color, and margin of all titles, you can write as follows:H1, h2, h3, h4, h5, h6 {Font-family: "Lucida Grande", Lucida, Arial, Helvetica, sans-se
I divided the Forum homepage into header area, information area, content area, footer area. First with a large div to include these, mainly considering the overall adjustment of the page, for example, to adjust to a widescreen or narrow screen, as long as the setting of this large div can be.
First put the code out, for friends debugging use.
Css:
Copy CodeThe code is as follows:
/* CSS Document */
body{
Background-color: #F5F5F5;
margin:0;
padding:0;
font-family: "
types, classes, or IDs have some properties in common, you can use group selectors to avoid repeating definitions multiple times. This can save a lot of bytes.For example: Define the font, color, and margin for all headings, as you can write:H1,h2,h3,h4,h5,h6 {font-family: "Lucida Grande", Lucida,arial,helvetica,sans-serif;Color: #333;Margin:1em 0;}If you have a
properties in common, you can use group selectors to avoid repeating definitions multiple times. This can save a lot of bytes.For example: Define the font, color, and margin for all headings, as you can write:H1,h2,h3,h4,h5,h6 {font-family: "Lucida Grande", Lucida,arial,helvetica,sans-serif;Color: #333;Margin:1em 0;}If you have an individual element that needs t
number of bytes, we recommend that you do not quote the path of the background image because the quotation marks are not required. For example:
Program code background: url (images/***. gif) #333; can be written:
Program code background: url (images/***. gif) #333;
If you add quotation marks, some browser errors may occur.
11. Group selectors)
When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times.
-width semicolon, colon
Gungsuhche
43
Clear
1, Letter lowercase L and 1 2, full-width semicolon, colon and half-width semicolon, colon
Lucida Console
43
Clear
1, Letter o and number 0 2, full-width double quotes and half-width double quotes
Lucida Sans Typewriter
*/}
You can use the following method to replace the above Code
The style definition is:
# Subnav {/* some styling */}# Subnav Li {/* some styling */}# Subnav A {/* some styling */}# Subnav. Sel {/* some styling */}# Subnav. Sel A {/* some styling */}
Using a sub-selector can make your code and CSS more concise and easier to read. 10. Do not quote the background image path
To reduce the number of bytes, we recommend that you do not quote the path of the background image because the qu
] + "_ child "). style. height = "0px ";}}@ Charset "UTF-8 ";/* Css definition */Body {Background: #5c90d9;/* background color of the entire webpage */}/*. Tit is the title style of each menu. list is the style of the menu item */. Tit,. list {width: 183px;/* width of the menu */} . Tit {/* Style of menu title */Height: 22px;Border: 1px solid # 2a4dab;/* border color */Border-bottom-style: none;/* No bottom border */Background: # 547DBE url (images/menu_head_bg.gif)
quotation marks, some browser errors may occur.
11. Group selectors)When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes.For example, to define the font, color, and margin of all titles, you can write as follows:
H1, H2, H3, H4, H5, H6 {Font-family: lucida Grande, lucida, Arial, Helvet
make your code and CSS more concise and easier to read.
10. Do not quote the background image pathTo reduce the number of bytes, we recommend that you do not quote the path of the background image because the quotation marks are not required. For example:Background: URL ("images/***. GIF") #333;Can be writtenBackground: URL (images/***. GIF) #333;If you add quotation marks, some browser errors may occur.
11. Group selectors)When some element types, classes, and IDs all have common attributes
marks are not required. For example: Program code Background: URL (images/***. GIF) #333;
It can be written as follows: Program code Background: URL (images/***. GIF) #333;
If you add quotation marks, some browser errors may occur.
11. Group selectors)
When some element types, classes, and IDs all have common attributes, you can use the group selector to avoid repeated definitions multiple times. This can save a lot of bytes.
For example, to define the font, color, and margin of all tit
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.