*. TTF or. OTF, applicable to Firefox 3.5, Safari, and opera*. EOT, applicable to Internet Explorer 4.0 +*. SVG, applicable to chrome and iPhoneFor example:@ Font-face {Font-family: 'hanshanditalic ';SRC: URL ('fonts/hanshand-webfont.eot ');SRC: URL
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Header: HeaderContent: content/ContainerEnd: footerNavigation: navSidebar: sidebarColumn: ColumnOverall Layout width of the page peripheral
CSS center instanceExample 1: vertical center of block-level elements (this is not vertical center because the blog garden originally had a DTD statement, which conflicted with what I added below, you can save the following code locally and add it
Background: Image-set ()
The image-set in the css4-images specification can achieve Retina screen display, mainly used to solve the design challenges of Apple Retina screen.
In a browser that does not support image-set, it supports
pop-up menu DEMOS DEMOS zero dollars wrapping text styled form active focus HOVER/CLICK & gt; HOVER/CLICK & gt; styled form active focus hover/click shadow boxing image map fun
In the previous example, "Float: left;" is added to the CSS code of the red and blue squares to achieve browser compatibility, so that IE and FF show the same effect, if we want to add a 400 pixel width,The green box with a height of 100, and place
Box {2/* vertical center method recognized by mainstream non-IE browsers */3 display: table-cell;4 vertical-align: middle;56/* set the horizontal center */7 text-align: center;89/* Hack for IE */10 * display: block;11 * font-size: 175px;/* It is
Css is hard to say and easy to say. In my opinion, the most important thing is the accumulation of experience. What we call this is that we do not accumulate silicon steps, and there are thousands of miles. This series of articles describe the
What is a high-level layout?
Let's look at a case:
The main content of the page in is a two-column structure, the left column is used for navigation, and the right column is used to display the content. We can see that they have a common border
Original address: http://www.denisdeng.com /? P = 165
This article is excerpted from The book The Ultimate CSS Reference. If you have any shortcomings in translation, please make sure that you have an ax. Refer to The original book:
You have learned a lot about CSS layout and skills at 52CSS.com. However, CSS style compatibility cannot be underestimated. The problems raised by CSS style compatibility often make everyone sad, due to the different interpretations of CSS by
Solution to the IE6 background image cache bug: the background image cache bug is one of the many common bugs in IE6.
A. Method 1: use Javascript scripts [recommended]
B. Method 2: Use the CSS expression html {}{Filter: expression(document.exe
CSS compatibility with browsers is sometimes a headache. Maybe when you understand the skills and principles, you will feel that it is not difficult to collect IE7 from the Internet, 6. Solve the problem of compatibility with Fireofx and sort it out.
This is a small document I have summarized for many years. Recently, I have seen some questions about browser compatibility.
Not necessarily all, and some may be inaccurate. For example, the new IE8 and Chrome are not involved much. Although some
1. Problems with the hover style after hyperlink access
Code:
blueidea Web standards FAQs daquan web standards FAQ Daquan web standards FAQs
Solution: Click to access the hyperlink style is not with hover and active, many people should have
1. Use class_name to write the class name.
I used to like writing with class-name, but it seems that there is no difference between the two. However, I am opposed to writing class names using className because I have always been skeptical about
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