The default format of the input file:
We can change the default system appearance by defining the border of input at most:
To make the browser button more beautiful, we want to define its background color, or even use a background image instead. It
content
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
Finally, I saw this abnormal IE7, like fog and rain, like the wind, the CSS hack of the IE series: * HTML it recognizes; Firefox's
Different rules can be used to define the link styles in different content blocks. Similar to this: # nav A: link or # Main A: link or # footer A: link. You can also define different styles for the same element in different content blocks. For
Solution
The best way to display sub-menus in a navigation system is to create a sub-list in a list. The two levels of navigation bar marked in this way can be easily understood-even if the browser does not supportCSS.
To generate a multi-level
This is a very simple application, but in the design, this can reduce the pressure on the server, is a good way to reduce the number of requests.
It is particularly worth noting that even two images in this small image can be slow in response time,
There are two difficulties:
Vertical center;An image is a replacement element and has some special features.As for how to solve the problem, the following is a simple solution to weigh the relatively clean structure of CSS:
. Box {/* Vertical
1. hexadecimal color value pairs of digits and case
When writing hexadecimal color values, you may use lower-case letters or omit them into three digits. No data is found to prove whether this method affects the rendering efficiency of the
For example:
some content
Preview this
Code The parent element float container of the outermost layer is not displayed. This is because the child element is floating and is out of the Document Stream, resulting in the parent element's height
I. first look at the buttons and text boxes that often appear on the web page!
In contrast, how can we change the text box and button appearance? Below I will provide you with two types of text boxes and button styles as an example reference.
Use JavaScript expressions in CSS expressions. The CSS attribute is set based on the calculation result of the Javascript expression.
CSS expressions do not work in other browsers, so they are useful when setting ieseparately in cross-browser
...
Declare in global.css
# Myarticle {Width: 400px;Height: 300px;}
In this case, getelementbyid ('myarticle') is directly implemented through Js '). style. width cannot get the PX value, because the value is defined in CSS, so you must use
I. In-line
In-row styles use the style attribute directly in HTML tags.
text Set the paragraph text to red.However, remember that the final HTML should be independent and use the presentation document, so the intra-row style should be avoided
ArticleDirectory
The above
The following
First, let's talk about several problems found during the attempt.
1. Box Model Problems
I believe that friends who play with refactoring or Div + CSS should know this thing. If you don't
Most of the pages of some websites are written in this way.
Many websites use link
Websites such as Google Baidu 163 are directly written on webpages.
Of course, the advantage of using link links and importing import is that it is easy
I. Use less remedies.
Similar to break-word, Z-index, manual layering, vertical alignment, and so on, it is best to use less, because not all browsers support it and it is very difficult to pass W3C detection.
2. The center is not a float value.
I thought this was done by the backend alone. Today, we can see that this effect is actually implemented by CSS. Put it here to share with you
Special Recommendations 1. Add the script code to the favorites site, and use
Picture News 1 Picture News 2 Picture News 3 Picture News 4 1 2 3 4
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
Positoin attributes have four values: static, fixed, absolute, and relative. The next two values are often used in layout positioning. As the name suggests, absolute refers to absolute positioning, drag an object out of the Document Stream and use
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