When you edit a paragraph in a word, you can set the two sides of the text to avoid the bad phenomenon of the different sides of the text section.
If you have an HTML page or another type of page, you are using Div to edit a paragraph of text. You
In Asp.net, sometimes CSS needs to be dynamically changed, for example, sometimes personalized pages can be implemented.Then, use the followingCodeSub page_load (sender as object, e as eventargs)If not (ispostback)Mystylesheet. Attributes. Add
Absolute Generates absolute positioning elements, which are located relative to the first parent element other than static positioning. The positions of elements are specified by the "Left", "TOP", "right", and "bottom" attributes. Fixed
We often hear people say it is better to use link to introduce CSS, but do you know why? Continue to look down
Link
Link is to connect external CSS with Web pages.
@ Import
The difference between the import text and link text is that it
After a year and a half, I read "CSS authoritative guide" again. I have benefited a lot, but I am new to it! Reading Notes: CSS-Definitive-Guide.doc harvest: first, the importance of the front-end developers often easily by the browser default style
In this browser, the display is normal, and the other one is messy. We will be very annoyed when writing CSS, And we just fixed the problem of this browser, as a result, a new problem occurred in another browser !!!
What is browser
CSS and JS work closely together to add a lot of unique effects to our pages. To achieve some special effect, we need to use JavaScript to dynamically change the CSS attribute of a tag. For example, when you move the mouse over an image, we add a
Common CSS naming rules
Header: Header
Content: content/Container
End: footer
Navigation: nav
Sidebar: sidebar
Column: Column
Overall Layout width of the page peripheral control: wrapper
Left right center
Logon entry: loginbar
Http://www.360doc.com/content/070126/16/9936_345621.html
CSS is generally introduced in three ways on the page.1. directly write in the page
2. Use link for Reference
3. Use import for Reference
The first is to write CSS directly on the HTML
The SS Layout looks simple, but it is not easy to ensure compatibility with multiple browsers. The 960 grid system framework is recommended here, but the official version is too large and there are too many files, qingzhu blog was optimized again
When CSS uses an image background, it is often used to merge multiple small images into a large image to Save loading time on the webpage. At this time, Image Positioning is required for using images and some explanations are provided on the
Today, I made a CSS style as required. In a DIV, the upper and lower heights are fixed and the middle is adaptive.
See the sample code below:
upper fixed height 100px central adaptive height fixed bottom height 100px
/* CSS file */#
Here are some tips to add to favorites and study them. Non-webpage designers do not want to watch. Otherwise, you will be dizzy... :}
CSS compatibility skills
1. Setting padding for Div under FF will increase the width and height, but IE will not. (
1. Special
First, let's take a look at the situation that will happen in this example:
1. Grape {color: Blue ;}2 H1 {color: red ;}3 meerkat central
If both H1 and. Grape match the H1 element above, which one should be used? Practice has
Solid line:
Vertical Line:
Dotted Line:
Double Line:
Stereo:
Gradually become transparent on the left:
Gradually become transparent on the right:
Style:
The Code is as follows:
Use the labelBasic: Width specifies the length of a line,
If you are willing to discard the browser of the old version and assume that your user is using a browser that supports css2 (for example, ie5 or later or Netscape 6 or later), you can use the newAllMedia descriptor to greatly simplify CSS code.
The
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, refer to "common CSS abbreviations syntax summary", which is not described here.
Ii. Define
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