Dry is donot repeat youself do not repeat. But in fact the name is a bit boring, which theory is not to eliminate duplication, but how to eliminate the meaning lies. Overall I think Drycss and Oocss are two extremes, so I'll talk about drycss in a
View Demo
Html
xml/html Code
copy content to clipboard
Div class="Curvedbox">
span >
span class="r1">span>
span class="R2">span>
span class="R3">span>
span class="R4">span>
span >
Div class="Content"> Flex is a
Upper and lower three lines of layout, up and down high, the middle bar adaptive browser height, and content vertically centered.
Firefox 2.0/win ie 6/win ie 7/opera 8.5 cn/win Safari test passed.
For non-IE kernel browsers, display:table,
CSS Hack finishing-css tutorial
CSS hack is the standard CSS can not be compatible with the browser to display the effect of the remedy, in the browser manufacturers to resolve the CSS is not agreed before, we can only use this method to complete
Some of the latest tips for CSS compatibility-browser compatibility tutorials
Make your style perfect compatible with each big browser, this program is mainly used to solve safari, Opear is in the test time incidentally tried, the results found
Difference IE6 with FF:Background:orange;*background:blue;Distinction between IE6 and IE7:Background:green!important;background:blue;Difference IE7 with FF:Background:orange; *background:green;Difference
The example in this article describes how the CSS implementation aligns the same line of text and input boxes. Share to everyone for your reference. The specific analysis is as follows:
We all know that sometimes a text input box and a piece of
Current page--for example, now the page is the homepage, then the first page of the navigation bar color and other columns are different, to give visitors a clear indication.
Below the specific approach, the basic menu implementation and the
The use of XHTML+CSS framework benefits a lot, but there are some problems, whether because of the use of unskilled or not clear thinking, I first put some of the problems I encountered in the following, the province of the people around to find.
1.
Simple and efficient, while supporting variable heights. Specifies the Transform:translate ( -50%,-50%) and top:50% with the vendor prefix for the content to center the content block.
CSS code copy content to clipboard
. is-transformed {
width:50%
CSS image optimization is to compress the size of the picture, speed up the page loading speed, which is very useful for large web sites. Do not underestimate it, it can greatly improve the speed of Web page loading. The usual method is to use CSS
A larger picture will affect the layout of the page. The ideal solution is naturally to generate thumbnails automatically, involving the background work is more complex, with CSS control is an acceptable shortcut.
It seems too smart to force the
1, Common and practical horizontal navigation bar
Create a new HTML file:
Code:
Horizontal Navigation production method
Home
Online Campus
Management Training
Online Classroom
I want to enroll
Culture Salon
With the development of front-end technology, JavaScript and CSS show great dominance in Web and Web applications, especially with the maturity of HTML5 and CSS3 standards, we can use JavaScript and CSS to develop special effects and animations that
Center implementation of absolutely positioned elements
If you want to ask how CSS to achieve the absolute positioning elements of the center effect, many people have the answer in mind.
The mainstream usage of good compatibility is:
CSS code
Many beginners have just learned the basics of CSS to go to the actual operation of the Web page Chettu, the total feel not to start. Here I would like to sum up for you, some Web Chettu experience and points.
1th: General Our website logo part
The example of this article describes the implementation of the CSS forced wrap alignment. Share to everyone for your reference. The specific analysis is as follows:
Using CSS to control Chinese and English characters Force wrap and justify,
Usually we want to achieve the effect of reflection, the general practice is to use multiple DOM elements absolute positioning +scale (minus-1) or rotate. The disadvantage of this approach is that it occupies space and too many DOM elements.
In a
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