Based on the different features of block-level elements and intra-row elements in CSS, the center display method is also different. Below we will summarize the situation of horizontal and vertical center:
1. horizontal center1.1 set text-aglin:
A Javascript script and CSS file will be referenced in an HTML page. During HTML display, the mechanisms for referencing these two files are different.
For JS scripts, HTML loads the scripts to the page for parsing, similar to the .
CSS is not
Organized by bohemian, the Blue classic forum exclusive. For details, please contact us and the Blue classic forum.* For appreciation only. Do not engage in commercial purposes!1
Download this issue: Issue 1, 9.47 MB
2
Download this issue:
Scale down or enlarge a large image to a certain size. For standard browsers (such as Firefox) or the latest IE7 browser, use Max-width and max-height directly; or the CSS attribute of Min-width and Min-height. For example, IMG {max-width: 100px;
1. Simplified CSS font attributesIn general, CSS is used to set the font attributes as follows:
Font-weight: bold;Font-style: italic;Font-varient: Small-caps;Font-size: 1em;Line-Height: 1.5em;Font-family: verdana, sans-serif;
But you can also
First, let's look at the box model in CSS, such:
We can think of it as a box opened above the reality, and then look down from the top down, the border is equivalent to the thickness of the box, the content is relative to the space of the objects
Article by: http://www.zgxmwjjg.com
Many of my friends don't know what kind of hack is in CSS and how to use it. I have translated and pasted it here. This article is about the CSS hacking technology. Do not confuse it with Microsoft's proprietary
The line spacing is too narrow, and the distance between the text and the border is also large, so it looks comfortable. The original layout was too dull and changed the color of some text, so it looked angry. The csdn blog does not have the paging
1. How to add a style sheet to a webpage?1) inline style Hello 2) use in .3) in ,
2. Why is CSS a stacked style?The concept behind a stacked style sheet is that multiple style definitions can cascade down to influence documents through multiple
Reference self-http://www.17css.com/a-detailed-explanation-of-the-css-drop-down-menu/
Code:
pure CSS drop-down menu
one
one
two
three
two
one
two
three
three
one
Dynamically modify the src attribute of the IMG label and use each
$ (". google "). each (function () { This. src = "http://www.baidu.com/img/baidu_sylogo1.gif"; }); // -->
Use the ATTR () method
VaR IMG = $ ("# ID");
Javascript indirectly changes the CSS style by changing the element Class Name
CSS:
/* Font link style */TD. firstlevelmenuclass A: link {color: # 3e8bac; text-Decoration: none;}/* unaccessed link */TD. firstlevelmenuclass A: visited {color: #
I have been doing a lot of web development recently. I would like to summarize the CSS skills I have encountered:
1. compatibility issues with layer transparency
Most people are used to using the unique filter of IE to create a translucent Div
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