Imitation Baidu Encyclopedia of the page navigation, the following figure for the navigation section of the effect chart:
CSS and pictures are copied Baidu, can be downloaded from the Baidu Encyclopedia.
The specific code is as follows:
You can already make simple Web pages by learning HTML, but trying to make a complex web page is not limited to the language of HTML. By learning CSS can greatly improve the efficiency and make beautiful web pages .
What is a style sheet?
1. General CSS Method--can implement Ie,safari,chrome,opera browser text overflow ellipsis representationThis is a test text, mainly used to test whether the text overflow will be displayed with ellipses.
The code is as follows
Copy
This example uses a pure CSS as a button without JavaScript code. This is not to imply that JavaScript is bad or stale, but rather to illustrate the capabilities of CSS.
============================================================
We need code with
Today, I'm going to introduce you to some CSS tools you might not have known before. These tools are units of measurement, like pixels or relative units, but you probably never heard of them! Let's have a go at it.REMWe'll start with something you
6. Appropriate code comments
Code comments can make the structure clearer by making it easier for others to read your code, and to organize code annotations appropriately. You can choose to do the start of the style sheet by adding a directory:
/*——
Eventually:
Basic principle
First set a background color of the normal div box, and then use the previous post to get the triangle icon, the div box to set the relative positioning mode, triangular icon set to absolute positioning, position
This is an example of using li Baidu Yahoo Sina Google Run this html code and you will find a black dot in front of it. Sometimes you may think this dot is redundant, so you need to remove it. The method to remove is: Baidu Yahoo Sina Google
Positioning tag: positionInclude attributes: relative (relative)Absolute (absolute)1. position: relative; if a relative element is located, it first appears at its location. Then, move the element relative to its original start point by setting the
Let's talk about the beautification of custom CSS styles. I have been talking about comments for a while. Some styles seem awkward, so I just want to beautify it a little. How can I beautify it? There is a custom CSS in the personalized settings
This CSS Hack code example intuitively shows the use of hack in browsers of various versions. Compatible with IE5.0, IE5.5, IE6.0, IE7.0, FF1.5, and FF2.0.The official simplified Chinese version of IE7.0 has been released. For those who often
Some CSS attributes allow a string of values to replace many attributes. Values are separated by spaces.Margin, pdding, and border-width can be merged into margin-top-width, margin-right-width, margin-bottom-width, and so on, in the form of property:
CSS automatically prints web pagesMany websites have a printing version, but this is not actually required, because you can use CSS to set the printing style.That is to say, you can specify two CSS files for the page, one for screen display and the
The following describes how to create an HTC instance by creating an HTC instance with the mouse sliding over and highlighted.1. Create the HTC file architecture. A standard HTC file contains a SCRIPT block and a pair of optional COMPONENT tags.
A new and more friendly introduction to CSS hidden text methods, explains why the existing several CSS hidden text methods are flawed and how the new methods can be compensated. It is generally practical, but this method is quite novel.1. display:
If you use the traditional method to make this flip menu, you need to cut the image into at least 10 blocks, add JS code, and add behavior on the image button. Now it is fully implemented using CSS, you only need one image, as shown in the following
Ie6.0/ie7.0/ie8.0. in order to make the written code run normally in various mainstream browsers, we have to write corresponding styles for various browsers. In this article, the bloggers will summarize the css Compatibility with hack (mainly ie6,
CSS style sheets are automatically called based on different browsers and resolutions. This is implemented using jscript. The following code is used: The code is as follows:Copy code automatically calls codes of different CSS based on the
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