In form creation, the style of input, textarea, And button is easy to define, and the style of select and input file is difficult to define.The default format of the input file:
We can change the default system appearance by defining the
1. To fix the height and width, see the following:
....
Key Point: overflow: hidden
Purpose: Hide the excess text.
2. If the width needs to be fixed, but the ellipsis is displayed for the text beyond the length, as shown below:
....
1.
External (extenal) style sheets have the following advantages over inline and internal:
StyleCodeReusable. An external CSS file can be shared by many webpages.Easy to modify. To modify a style, you only need to modify the CSS file without
Today, I saw some friends in the Group asking the vertical center of the text in a single row of images. So I wrote this article.Article.
This problem is often encountered on the page. Let's take a look at the most basic line!
(CSS authoritative
White-space:Normal|Pre|NowrapThis attribute is generally followedNowrapIt means that the content in a label is displayed in one row. If this line is not displayed, it must be displayed forcibly. If you are interested, refer to the Baidu homepage,
CSS has a special attribute: font. I don't know when we started using this definition: font-family: ' '. But after this definition, we may sometimes see this situation, we have defined the font of, but how is the font displayed? The other fonts
Move the mouse over to see how the icon moves.
Code:
/**/ IMG: hover {-moz-transform: Rotate (-130deg); -WebKit-transform: rotate (30deg); transform: Rotate (30deg); }/* beside linear also have success, skip-in, encoding-out, encoding-in-out */
Benefits of setting up a standard web page with Div + CSS
I. Using Div
Program Especially when PHP is used.
Code Nesting can reduce the amount of code that is as heavy as in the table, and reduce the problems caused by table code for page nesting.
1. CSS simplified font rules
When CSS is used to define the font, you may do the following:
Font-size: 1em;
Line-Height: 1.5em;
Font-weight: bold;
Font-style: italic;
Font-variant: Small-caps;
Font-family: verdana, Serif;
In fact, you can
After a long morning of tossing, the problem of Min-height is not fixed, because Min-Height: only plays a role in IE7 \ ff. The Internet Explorer 6 does not recognize it. The minimum height must be used for this page.
The page is left and right of
When we write CSS styles for multiple browsers, the analysis of the box model varies depending on the browser. To achieve the same effect, you have to write different styles for each browser. This increases the workload of front-end page designers.
As the concept of Web Page standardization is deeply rooted in the hearts of the people, more and more websites adopt the CSS architecture. CSS architecture web pages not only comply with W3C standards, but also very beautiful. Standard Web pages
2.3.1 class selectorUsage 1: To work with the class selector, the document must be identified accordingly. Class= "Warning"> when handling plutonium, care must be taken to avoid the formation of a critical mass. with plutonium, Class= "Warning">
2.1 rule Structure::= :: = { }[ semicolon] := semicolon :: = ::= colon ::= :: = { }::= space generally uses space as the delimiter between values. The exception is as 've seen, CSS keywords are separated by spaces-since T in one instance.
insert title here dimensions Main Menu main course 1 Single Main Menu single main menu single main menu single main menu single main menu Main Menu main course 2 Single Main Menu single Main Menu main course 3
In the previous lesson, we talked about how CSS controls the page. If you don't remember it, I will help you remember it, there are four ways to control HTML page styles: In-line, embedded, link, and import, if you want these styles to implement one-
-- Use CSS to change the table border style-
Use CSS to change the table border style-
Hide bottom
Hide top border
Hide the Left BorderHide the right border
CSS definition:
hide hide the upper border hide the Left Border hide the right border
1
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