directx Transform Filters Interactive demo
var browsercapable = true; Prevents errors on downlevel browsers
var startimage = "/workshop/graphics/tigerstripe.jpg";
var endimage = "/workshop/graphics/metablob.jpg";
var featuresheader =
The CSS margin properties define the space around the element. You can set the top, right, bottom, and left margins by using a separate property. You can also use the abbreviated outer margin property to change all the outer margins at the same
Two new properties are added to the processing of the text word-wrap and word-break to solve the problem:
{Word-break:break-all;} : The text rules for Asian and non-Asian languages allow line breaks within words and allow any word in non-Asian text
When I wrote the article "5 ways you might not know about JavaScript and CSS interaction," people were amazed at how JavaScript and CSS overlapped. Today, I will focus on the 7 kinds of work you can do with CSS-no need for JavaScript or graphics.
In a fixed width of a column, we use margi:0px auto; This setting allows a div to be centered, while the two columns need to control the left side of the left column and the right column to the right, so use margi:0px auto; it does not seem to be
Transparency often produces good web visuals, first with CSS-transparent code compatible with mainstream browsers:
Copy Code code as follows:
. transparent_class {
Filter:alpha (OPACITY=50);
-moz-opacity:0.5;
-khtml-opacity:0.5;
The improved version optimizes the problem by adding a menu to a simple JavaScript code. At the same time make the HTML page is very concise, only need to write 2 lines of code can! O (∩_∩) o
1. Use the premises, introduce a CSS file in the HTML
Despite the vertical-align features of CSS, it does not effectively solve the problem of vertical centering of unknown heights (in the case of a DIV tag with an unknown height of text or a picture).
Standard browsers such as Mozilla, Opera, Safari,
Force No Line wrapping
div{
White-space:nowrap;
}
Wrap Line
div{
Word-wrap:break-word;
Word-break:normal;
}
Force word breaking in English
div{
Word-break:break-all;
}
CSS settings do not change careers:
Overflow:hidden
Sometimes.. Some things Firefox always support bad .... can only find private property to help ....Example of rice to do ... Because there are too many to understand ... When the understanding is similar to the cost of electronic books.Although
Horizontal drop-down Menu
horizontal down pull menu
menu One menu one Menu One menu one menu one menu one menu One & Lt;/li> menu Two menu two menu two Menu Two menu two menu two menu three Menu
Browser compatibility issues-css Div minimum height in IE 6 and IE 7 compatibility issues
CSS to define the height of a div, in IE 7 browser can be displayed normally. But in IE 6, the height below 10px cannot be defined. This is a bit similar to
Using abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for CSS abbreviations are as follows:
Color
16 The color value of the binary, if the value of each two digits is the same, you can abbreviate
Don't say a word, let's see it with this little weave.
1, CSS
2. Javascript
3, HTML content
@*thead content and style with Scroll_head thead*@ use a deep background color to avoid scrolling and @*thead content
The mouse over the element so that the style of the element changes
We define a button label
The code is as follows:
BUTTON
We first set the background color of the button to be gray:
The code is as follows:
. px-button{
Application Tip one: Offset and ligatures
We can use the Box-shadow offset effect to write the moving End navigation button "Three staves", the following figure:
We are using the Box-shadow and ligatures! What is ligatures? Is that we can write
Grammar:
Text-overflow:clip | Ellipsis
Parameters:Clip: Do not show ellipsis (...). ), but simply cut(Clip This parameter is not commonly used!) )Ellipsis: Displays an ellipsis (...) when text overflows inside an object. )
DescriptionSets or
We often see in the page, such as Web site can not be broken automatically (as shown below)
If it is a Chinese character, you can wrap the line automatically. If it is a continuous English or number will be regarded as a word, even if
In fact, a Box consists of many rows and many elements. vertical-align only acts on elements in the same row, and its vertical is not relative to the entire Box. A 60 PX height is defined above, but there are many lines in this Box, and the text
How to center a DIVThe main style definition is as follows: body {TEXT-ALIGN: center ;}# Center {MARGIN-RIGHT: auto; MARGIN-LEFT: auto ;}Note:First, define TEXT-ALIGN: center in the parent element. This means that the content in the parent element
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