Share sharing share sharing share sharingAs the browser continues to upgrade, the boundaries between CSS and JavaScript become blurred. Originally they were responsible for completely different functions, but in the end they all belonged to the Web
Here are examples of some of the more commonly used properties.
Margin
margin-top:1px;
margin-right:1px;
margin-bottom:1px;
margin-left:1px;
Code simplification to:
1. Check HTML elements for spelling errors, forgetting to end tags
Even a veteran often makes a mistake about the nesting of Div's relationships. You can use the Dreamweaver validation feature to check for errors.
2. Check that the CSS is
First Word Amplification Practice _ Script Home _www.jb51.net Foot Ben's house www.jb51.net.
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
For example:
Some Content
Now preview this code and we'll find the outermost parent element float container, and it's not displayed. This is because the child element is floating and detached from the document stream, resulting in a parent
Author: Loko
First look at this sentence
Copy the Code code as follows:
Under IE, there is no problem, when the mouse stroke, there will be a small hand shape, but in the FF, only the first stroke of the past to be effective, this is
For example, the width of 210px ul has 4 Li, the width of the 4 Li, according to their own content length of 80px, 120px, 140px, 80px.
The effect I need is 4 Li automatically arranged to the left. When the length of the third Li and the first two Li
IE directly with:
Word-break:break-all; /* Allow word wrapping in words */
Word-wrap:break-word; /* content will be wrapped within the boundary */
/* The default to note is: */
Word-wrap:normal/* Allow content to open the specified window border
div+css Simulation Table effect-by koyoz.com &L t;ul> 11 11 11 11 11 11 11 11 11
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
There are 4 common ways to associate HTML documents with CSS:
Using the link tag
Using the STYLE element
Using the @import directive
Inline style using the Style property (inline style)
It's a red word.
In practice, inline styles
We've talked about the difference between strong and EM in the front. In addition to strong and EM there are some similar tags such as q, cite, blockquote. These three belong to the reference class, but there are some differences here, first of all
The browser detects HTML5 features using Modernizr.
Recently, I am working on the company's mobile terminal operation project. animation is involved in many areas of demand. I believe that many front-end developers will have such feelings and are
Web development and web development learning routes
1. width & height
2. background:
A. background-color
B. background-image: url ()
C. background-repeat: no-repeat, repeat-x, repeat-y;
D. background-position: normalized sequence x y. In addition to
Study Notes for HTML5 and CSS3 basic tutorials-Three Day, threedaysChapter 2
1. box-sizing: border-box (include padding and border in width and height)
2. clear: display the elements behind the floating element.
3. z-index is only valid for absolute,
Sass BASICS (8) and sass Basics
@ ImportSass supports all css @ rules and some Sass exclusive rules, also known as "directive". These rules have differentThe function is described as follows.@ ImportSass extends the @ import rule of CSS so that it
Box-shadow, four shadows of boxshadow
Learning address http://blog.csdn.net/freshlover/article/details/7610269
Shadow Type: this parameter is optional. If no value is set, the default projection method is the external shadow. If its unique
CSS note-padding, margin is the reference object for percentage calculation, paddingmargin
The padding of div is a percentage.
When padding-top, padding-bottom, margin-top, and margin-bottom are percentagesWidth of the parent ElementTo compute
1.
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