First, CSS commonly used font properties
1. Font settings
Fonts are set by the Font-family property in the CSS.
Font-family: "Bold";
2. Size of the font
Use Font-size to set the size of the text font-size:16px; PX is a unit of length, 1px means
The Text-align:center attribute is used when the content is centered, but when the inner element is float, the text-align is invalidated.We can only have other ways to achieve the goal of centering
The code is as follows
Copy Code
CSS settings text overflow does not show or display ellipses, only a certain length of text, IE9 just set
The code is as follows
Copy Code
Div{white-space:nowrap;text-overflow:none;}
Or
The code is
CSS can refer to the following definition, note order:
The code is as follows
Copy Code
#menu {line-height:23px;} * * Firefox browser to implement this definition#menu {line-height:26px9;} /*ie6,ie7,ie8 This sentence
Two kinds of open links in a new window, the following two code can just add in one place can control the current page the entire page opens a new window, and do not each a tag to increase the Target=_blank function Oh.
$ (document). Ready
Take a good look at the code, I believe it will help you a lot.
css layout a nice slider Life satisfaction: 63% Job satisfaction: 38 % Love satisfaction: 86%
[Ctrl + A All SELECT Note: If the need to introduce
In fact, the picture here can be defined with CSS code when used normally.
making CSS mouse hover menu using picture switching technology
home About Contact Forum guestbook
[Ctrl + A All SELECT Note: If the need to
This series of tutorials is an entry-level tutorial for beginners to learn, with the simplest knowledge of 1.1-point advanced. Mainly with examples, few theories, this is more suitable for beginners to grasp quickly. Because I am also learning, it
Just read the source code of jquery, which on the CSS and classname operation of the idea is really good, it is worth learning.
The definition part of JQuery.className.has is implemented by the regular, in fact, the use of the IndexOf method of the
css Menu Demo product Introduction product One Products One products one products one product one product one Service Introduction service two service two ;li> Service II Service two service two Service two service two
Copy Code code as follows:
function Reimgsize () {
for (j=0;j{
Document.images[j].width= (document.images[j].width>420)? " 420 ":d ocument.images[j].width;
}
}
Then add onload= "reimgsize ()" to the body area. Tested and
Block-level element div as little as possible, in fact, as with table, nesting less the better, it will affect the speed!
OL have sequence table.
......
......
......
The performance is:
1. ...
2. ...
3. ...
UL unordered list, showing that the
The example in this article describes the Jquery+css method for implementing a simple toggle menu. Share to everyone for your reference, specific as follows:
Untitled page ;d IV class= "Menutitle" > title1 Menu1 menu2& lt;/li>
Use JS to dynamically set CSS styles, common in the following several
1. Set the properties of the style directly some cases with this setting!important value is invalid
If the attribute has a '-' number, it is written in the form of a hump (e.g.
We often put multiple CSS or multiple JS into one, to save the request, but this is at least two. On the MSDN blog to see the original is also can be JS and CSS and in a file, then how to do it? Using annotations, look at the code
The company's provincial and municipal data comparison pit dad, is through the EHR system to generate ID to match, such as the corresponding ID 01211014aop145 in Fujian province, the city also corresponds to an ID, and then the county will ignore.
One is to put the CSS document in the document: The "type = 'text/css '" in means that the code in defines the style form. Another method is to write the CSS style sheet in the HTML row, such as the following code: blue 14 text The Style is
Sudo apt-get install node-lessSudo apt-get install npmSudo npm install-g less-plugin-clean-css/Usr/lib/node_modules/npmconf requires inherits @'~ 2.0.0 & prime; but will loadBefore performing the following operations, back up the inherits @ 2 folder
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