Below is my favorite writing:
The code is as follows
Copy Code
$ (""). attr ({rel: "stylesheet",Type: "Text/css",HREF: "Site.css"}). Appendto ("Head");
Some friends may use the wording below, but there are some
jquery's CSS format ("Properties", "parameters")
If you want to get a percentage of width, enter the following code.
Math.Round (($ ("#js_top_ment"). Width ()/$ (document). Width ()) *100)
Method Two
var
Recently browsing online data, found some of their own never used CSS, so recorded, in some cases may be able to use.
1, the simple operation of CSS
We usually use CSS to specify static results, and dynamic results, such as height, location and so
Many people on the Web page to achieve different links have different colors do not know how to deal with, if you change the properties of a, as if all the color of the link changed.
Four hyperlinks in the state of the corresponding CSS properties:
Maybe you've seen a pixel border problem with the Retina screen, and note that this is a border width rather than a moving element.
What the? Border less than 1px?
Yes, because someone in front of the relevant program and a good variety of
You may often use hover this attribute, with hover to achieve the color change of the mouse and so on, in fact, hover is very powerful.
Share a mouse through, pop-up drop-down menu tips;
When we built a list:
Level menu Level menu Level two
Objective
The video I recorded has not been online, and the news of the website says it is possible to join the employment course or a series of courses. There may be the end of the line, I wait for the flowers are thanks! Therefore, I saw
Mobile Browsing Adaptive Web pages, Safari browser can often automatically identify and layout, picture width is filled with the screen, then how to do without the reader when the effect of this? As shown here, let the picture width fill up the
In css, you can change cursor into a hand-capturing shape. Note that it is not the hand of a hyperlink, but the starting point.Css: {cursor: url ('absolute path image (format: cur, ico) '),-moz-zoom-out;} // FFCss: {cursor: url ('absolute path'),
After several years of development, I did not pay attention to the position: fixed usage during front-end development.We all know the position value of the position attribute in CSS. Besides the default value, there are absolute, relative, and fixed.
Sometimes, we use images instead of text. The most commonly used is the input button.In the past, I used text-indent:-9999px to move the text out of the page. However, this method has a "bug" in IE6. After applying this css attribute to a block
Transparency often produces good web page visual effects. First, we provide CSS transparent code compatible with mainstream browsers: The code is as follows:Copy code . Transparent_class {Filter: alpha (opacity = 50 );-Moz-opacity:
Class selectorIn CSS, the class selector is displayed with a dot: The code is as follows:Copy code . Center {text-align: center} In the preceding example, all HTML elements with the center class are centered.In the following HTML code, both h1
Example The code is as follows:Copy code fixed width in the left column and absolute positioning method in adaptive mode in the right column Left ColumnRight column It looks nice, ..Because the left column uses absolute positioning and is out
General position: fixed; implementation methodTake my blog as an example. The CSS code used by the ... HTML element in the lower right corner is as follows: The code is as follows:Copy code # Top {Position: fixed;Bottom: 0;Right: 20px;} To fix
1. Set position: relative directly on your level table; 2. In FF, position: relative must be consistent with display: block/inline-block to take effect,Display: block/inline-block can be the default block element or the defined element. 3. In IE,
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