The abbr and acronym mark indicate the abbreviations and abbreviations displayed on the webpage. The full names of abbreviations are given through the title attribute.
And
Mark indicates the abbreviation and abbreviation of the text displayed on the webpage. The full name of the abbreviation is given through the title attribute. The difference between the two i
C #. NET encoding specification, c #. net Encoding
I,Environment Settings
First, remove the following options in the development environment:
Figure 1
Figure 2
II,Naming rules
1) versatility
L The total length of the logo cannot exceed 32 characters.
L The basic syntax of an identifier is a word consisting of letters, numbers, and underscores (_). The first character cannot be a number.
L if appropriate, append the calculation qualifier (Avg, Sum, Min, Max, Index) at the end of the variable n
classes instead of common element tags to optimize rendering performance. (line No. 891 and 895) 2. It is recommended that the nesting level of the selector should be no greater than 3 levels and that the position should be as accurate as possible. (reference 1) 3. Avoid using some property selectors in frequently occurring components (for example, [class^= ...]). Browser performance is affected by these conditions. 4. Using the descendant selector only if necessary The example attribute short
can generate the following code:HTML code
ul>
li>li>
li>li>
li>li>
ul>
7. Define multiple elements with attributesIf you enter ul>li.item$*3, the following code will be generated:HTML code
ul>
li class="item1">li>
li class="item2">li>
li class="Item3">li>
ul>
Of course here to ul>li#item$*3 is also possible, the results are as followsSecond, the CSS abbreviation1. ValueFor example, to define the width of an elemen
CSS super tips
I. Use css abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of css abbreviations, see common css abbreviations syntax summary, which is not described here.
Ii. Define the unit unless the value is 0
Unit that forgets to define t
, int, double.What is the difference between 16.swift and OC, and what is the connection?17. Summarize the programming code formatting considerations?(1). Variable name to strictly follow the English, do see the name of the meaning, and should not follow the Hanyu Pinyin to achieve the name of understanding.(2). Methods to be separated by a line of space, the method inside the white space should be isolated to separate the implementation of the function, generally separate functions are extracte
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 readable
9. Select a better style property value
10. Replace @ import with
11. Use an external style sheet
12. Avoid using CSS expressions)
13. Code Compression
CSS is not difficult to write, but it be
throughout all phases of the project. We must also have documents for communication. No matter what we say, a document is required. Even daily morning meetings should be documented.
For document allocation, Every programmer should be able to understand what the project is to do and what the program is to do in the spirit of not letting everyone master the core documents of the project. Our programming is document-driven, and the content written by every programmer is written according to the d
18-way CSS skills
Recently, some friends have asked me some CSS problems in my work. They are always unable to control CSS and affect the efficiency of CSS. I will analyze and summarize the error to help you make it easier to use CSS.
This article summarizes all my skills and compatibility solutions since I started using the CSS layout method. I would like to share this with you, I will focus on some mistakes that beginners may make (including those I have made myself). If you are already a C
About CSS
Use CSS abbreviations to speed up your website
A key indicator of Web site usability is speed, or rather, how quickly a page can appear in a visitor's browser window. There are a number of factors affecting speed, including the speed of the Web server, the Internet connection of visitors, and the size of the file that the browser must download. Although you can't control the speed of your servers and connections, you can control the size of
. Margin description
Margin is used to set the outer Yanbian distance of the object.
The value of margin can be a positive integer or a negative integer, and the Unit is pixel (margin-left: 20px). It can be auto attribute (margin-left: auto ); it can be a percentage (%) value (margin-left: 3% ).
Margin extension (set the four-side spacing attribute word separately)The left extension margin of the margin-left object (margin-left: 5px; the left extension distance is 5 px)The right margin of the ma
use the * symbol. For example, UL>LI*3 can generate the following code:HTML code
ul>
li>li>
li>li>
li>li>
ul>
7. Define multiple elements with attributesIf you enter ul>li.item$*3, the following code will be generated:HTML code
ul>
li class="item1">li>
li class="item2">li>
li class="Item3">li>
ul>
Second, the CSS abbreviation1. ValueFor example, to define the width of an element, simply enter w100 to generateCSS C
Although the most frequently used communication tool in the work is telephone and email, sometimes it is not convenient to make a call and it is impossible to check the email, white-collar staff in foreign companies usually use text messages to communicate. However, as we all know, Chinese text messages are easy to send, but if you want to send text messages to foreign colleagues or bosses, you can only lose English. Everyone has a headache on this matter. It is indeed too troublesome to lose a
I. Use css abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of css abbreviations, see common css abbreviations syntax summary, which is not described here.
Ii. Define the unit unless the value is 0
Unit that forgets to define the size is a commo
letters separate words and limit the use of underscores. The parameter name must be consistent with the variable naming rules. Use meaningful parameter names. If possible, use the same name as the field to be assigned values:Setcounter (INT size ){This. size = size;}ArrayThe array should always be named in the following way: byte [] buffer; instead of byte buffer [] (habitual problem ).It is worth noting that the full English descriptor should be used whenever possible (there are also special c
commented out or explained too much;
For a self-compiled function, if it is a key function of the system, the information of the function must be indicated at the top of the function implementation section. The format is as follows:
/*** Function Name:* Prepared:* References:* Functions:* Input parameters:* Output parameters:* Secondary note:*/
Try to follow the above format.
V. Symbolic Style
. General requirements
There is a common point for the definition of various symbols, that is, we shou
IP link set -- change device properties. Abbreviation: Set, SExample 1: up/down start/Close the device.# IP link set Dev eth0 upThis is equal to the traditional # ifconfig eth0 up (down)Example 2: change the length of the device transmission queue.Parameter: txqueuelen number or txqlen number# IP link set Dev eth0 txqueuelen 100Example 3: Change the MTU value of the network device.# IP link set Dev eth0 MTU 1500Example 4: Modify the MAC address of a network device.Parameter: Address lladdress#
I. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of CSS abbreviations, see common CSS abbreviations syntax summary, which is not described here.
Ii. Define the unit unless the value is 0
Unit that forgets to define the size is
may lead to different opinions on what is intuitive and what is not intuitive. if non-professional users can use the API immediately without reading the document, or programmers who do not know this API can understand the code using the API, this API is intuitive.
Note: To make the API easy to remember, use consistent and accurate naming rules. Use easy-to-recognize patterns and concepts to avoid abbreviations.
Generate readable code: The code is o
, we should write the code:
# Include
Int main (int argc, char * argv [])
{
Int result = 0, number1 = 0, number2 = 0;
// Request the user to enter the values of number1 and number2:
Printf ("Enter the number 1 :");
Scanf ("% d", number1 );
Printf ("Enter the number 2 :");
Scanf ("% d", number2 );
// Perform operations:
Result = number1 + number2;
// Display the operation result on the screen:
Printf ("% d + % d = % d \ n", number1, number2, result );
Return 0;
}
Run, display:
Enter
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.