Examples of how to use CSS + JavaScript or pure js to implement translucent masks and css masks
CSS + JavaScriptImplementation principle:Create a fully-screen div and use absolute positioning. In this way, it can leave the Document Stream without affecting other elements and
[CSS Demo] use pure CSS to create the Flow-Steps navigation and cssflow-steps
The low-Steps navigation effect is usually used to indicate the interactive page for performing the step. The effect is as follows:
Step 1
Step 2
Step 3
Images are usually used to achieve Flow-Steps, but this method is not flexible enough. When the content changes greatly, you may
How to Use CSS to implement small triangles and css to implement triangles
How to Use CSS to achieve small triangles:Among the many web page effects, there are applications with small triangle effects, which can increase the aesthetics of specific applications. The following
Donut effect (CSS Sprites)
Example Background map:
This article describes how to use CSS to achieve the Sprites effect (CSS), more relevant content, please follow the PHP Chinese web.
Use css to draw triangles and css to draw triangles
I saw some questions asking how to draw triangles with css.
As we all know, many images can be split into triangles, so a lot of interesting shapes can be drawn by drawing triangles.
The principle of drawing a triangle is to adjust the width, line style, and color of
Use css to customize the scroll bar of the webkit kernel browser, css webkitUsing css to set the webkit kernel browser's scroll bar mainly sets the following seven attributes:1.:-webkit-scrollbar/* overall part of the scroll bar. You can set the width and height */2.:-webkit-scrollbar-button/* buttons at both ends of t
Use css layout box-sizing and css layout box-sizing
Div {
Box-sizing: border-box;
Width: 200px;
Padding: 20px;
Border: 1px solid red;
}
This section of css indicates that the div width is 200px, the border is 1px, the left and right margin is 20px, and the time content width is adaptive, Which is 200-2-20*2 =
How to Use CSS to implement a left-side fixed-width, right-side Adaptive Layout of two columns, css two columns
I recently saw a question in the Baidu IFE training camp:
Two different methods are used to implement a layout of two columns. The width of the left part is fixed, and the width of the right part changes with the browser width.
I personally summarized t
Use the css class name intersection compound selector "Turn", css "Turn"
A compound selector is a set of two or more basic selectors that are connected in different ways, including the intersection selector, Union selector, and descendant selector.
Intersection Selector
The intersection compound selector is composed of two selectors connected directly. The resu
-->
$velocityCount-->
-->
In web design applications, when we cannot completely abandon the use of the table, in order to achieve the desired effect, it is unavoidable to use the table nesting (especially multi-layered nesting) way to layout. Many colleagues may have encountered such a problem, in order to achieve the display effect for each (each layer) of the table to write different
Method One: Description: The advantage is that the content can be any HTML element, including hyperlinks and pictures, and the ellipses are automatically displayed at the end of the IE6. The disadvantage is that you must specify a width value, and the width cannot be a percentage, otherwise it will be considered as the total length of the character in IE. Method Two: Description: The advantage is that the width can be set to a percentage. But the drawback is that content can only be plain text
Use Python to capture the CSS template of the template house and python to capture the css Template
The Python version is 2.7.9. If it is successfully tested on win8, it is a little slow to capture. If you want to use multiple threads, you have to wait. The url parameter on the website of the template home does not mat
In the previous section, we talked about vertical navigation. however, most websites still use horizontal navigation, so you can learn how to implement horizontal navigation. how can we achieve the following results. you only need to avoid line breaks between the list items, so you need to convert
The HTML and CSS codes are as follows:
Copy to ClipboardReference: [www.bkjia.com] Http://www.w3.org/TR/xhtml
First case/* When the icon in front of the title is a single dot or block or other similar icon, define the background map background to be placed in Set the size, address, non-repetition, position of the background image in The second case/* When the icon in front of the title is a long column and marked with a continuous 1, 2, 3, 4 ... Picture instead of a single point or similar icon when defining the background map background to be defined in Remember to define the attribute width, the addre
FF Browser
. test{
height:20px;
Background-color:orange;
}
IE7 Browser
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
IE6 Browser
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
The above CSS code shows that FF is still the most obedient browser. In IE6 and IE7 if you want to use hack you must precede with the tag HTML.
Here is a good memory, IE6 plus *html, and IE7 plus *+html,
FF Browser
. test{
height:20px;
Background-color:orange;
}
IE7 Browser
*+html. test{/*ie7*/
height:20px;
Background-color:blue;
}
IE6 Browser
*html. test{/*ie6*/
height:20px;
Background-color:black;
}
You can see that FF is the most obedient browser through the CSS code above. In IE6 and IE7 if you want to use hack you must precede the tag HTML with the husband level.
Here is very good memory, IE6 plu
First, the CSS Foundation1. Selectorselector {attribute: value;Property: Value}Role: A selector for matching HTML elements, classifications and weights, parsing and performance, and attentionClassification:
Element Selector a{}
Pseudo element selector:: before{}
Class selector. link{}
Property selector [type=radio]{}
Pseudo-Class selector: hover{}
ID selector #id{}
Combo Selector [type=checkbox]+labei{}
Negative selector: no
Method One:Description: The advantage is that the content can be any HTML element, including hyperlinks and pictures, and the ellipses are automatically displayed at the end of the IE6. The disadvantage is that you must specify a width value, and the width cannot be a percentage, otherwise it will be considered as the total length of the character in IE.Method Two:Description: The advantage is that the width can be set to a percentage. But the drawback is that content can only be plain text, not
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.