Write abroad project to use the label this dongdong, in fact, the label is everywhere on the web, in turn, it shows the DCC article publisher, abroad backstage add data, Baidu image search, SF post blog post label style-tag is like a native checkbox
Requirements: Picture width1, the use of max-width,max-height so that the proportion of the picture automatically scaling, code:
Copy Code code as follows:
img{max-width:330px;max-height:150px;}
Because IE6 does not support
& lt;html xmlns= "http://www.w3.org/1999/xhtml" lang= "gb2312" > Level Two Tree menu example: CSS treemenu css treemenu by Maple Rock @iecn.net& lt;/h1> colleague Dodo Xiaochun Kobayashi Little Dragon Maple rock Customer
Today most websites still use the form of nested content to make the site, although this method for us is more familiar, more hands-on; however, it hinders a better, more approachable, more flexible, and more powerful approach to web design--div+css.
The worse thing is, even if you are only for IE design, do not consider other browsers, because the IE model can be said to be an elusive monster, so you simply for IE design will encounter many problems, found that a lot of effect is always around
Cascade Priority is:
Browser defaults
The style sheet is also:
Class Selector
The derivation selector was previously called the context selector, so the complete cascade priority is:
Browser default
Sometimes in the process of writing CSS,
CSS text overflow ellipsis
Text-overflow:ellipsis
Ext-overflow is a special attribute, which is defined by the previous document in the current document (which does not contain the Text-overflow attribute, fml!):
Name:text-overflow-modeValue:clip
Tip: You can modify some of the code before running
js+css discontinuous and uninterrupted text scrolling code First line second line Third line First line second line third line
Tip: You
I. The characteristics of float
1. Apply to text around picture
2. Create a block-level box
3. Multi-column floating layout
4. The width and height of the floating element are adaptive, but the values can be set.
Second, the core solution to
Brief tutorials
This is an editable Microsoft Word style document made with HTML and CSS3. This effect provides a predefined set of styles for creating word-style document effects of various sizes in a Web page. The styles it provides include:
In the true sense, the horizontal inline-block elements are separated by line breaks or spaces. A very simple example is as follows: The spacing is coming ~~This problem also occurs when we use CSS to change the horizontal element of a
Sliding DoorTo make the buttons flexible, we must make the background image automatically adapt to the text width of the buttons. To this end, we need to use the sliding door technology, combine two background images into one background image. The
First, we need to have a concept: CSS can be implemented for any table layout. CSS can be implemented, but table cannot.Here are several examples:1. Center a single line of contentIt is easiest to consider a single row. No matter whether or not the
CSS clear for Float: both has a new method every year. XD2008 clear in 2010: both statementHowever, we will see this article this year: Best Cross-browser CSS Clearfix solution. Compared with the previous article, we have added a few more parameters.
DirectoryIntroductionBrowser selectorMake IE6 support PNG transparentRemove the dotted line of a hyperlinkDefines the width of an element in a row.Center a fixed-width pageImage replacement technologyMinimum widthHide horizontal scroll barI.
Hack List (all tested by the author, in standard mode, hybrid mode is rarely used, so it is not tested ): The pink part is the property hack, and the yellow part is the selector hack, which can be used in combination. In addition, Firefox and Chrome
1. Use the STYLE attribute: add the STYLE attribute to individual component labels.The advantage of this usage is that the style can be applied to various labels smartly, but the disadvantage is that there is no "uniformity" of the entire file 』.2.
CSS allows you to control the appearance and layout of a webpage-including fonts, blank pages, and cursors. Good. From CSS 2.1, you can easily control the cursor used when users browse the web page.The standard CSS cursor is an arrow. Generally, it
We use CSS in the webpage to set the webpage, table, and font size. Generally, we use 9-pound words that are popular on the Internet:In CSS, I set FONT-SIZE to 9pt. When the display is set to a small FONT, we can see the small five FONT display,
JavaScript and CSSIn Part 1 and Part 2, we have introduced several code for improving the page content and server in the website performance. In addition, JavaScript and CSS are also common content on our pages, they are also optimized to improve
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