To ensure compatibility and distinguish between multiple browsers, we need to use some csshack to solve these problems, but it is not recommended to use it. Otherwise, we do not need to block the IE browser (that is, it is not displayed under IE)
We all know float: left and float: right, but have you ever thought about float: center? Center floating...
The Code is as follows:
List 1
List 2
List 3
We hope that the li is floating and centered (the number of li is
This is the difference between name and id in form. We can use a piece of code to analyze the subtle differences:
In IE browser, how many methods can we index this text box object? (For the sake of difference, we set NAME and ID to different
Yesterday I encountered a problem when I used css in combination with div layout. In a ul with a specified width, I define the li width as automatic. The attempt is to arrange li in the left Alignment Based on the Content Length. For example, there
If I set LI to position: relative; Set span to position: absolute; then we will find that no matter how high the z-index value of SPAN is, it will always be under the parent level. If I set LI to position: relative; Set span to position: absolute;
Some tags in XHTML labels have similar functions. Of course, similarity here refers to semantic similarity, so many people do not know how to use these similar labels, today's topic is to break down similar labels and clarify the purpose of each
IE8Beta1 has been released, and we can see many new features. For example, layout Engine "completely" supports CSS2.1 and HTML5, so it is different from the Layout engine used by IE browser, the previous IE browser does not fully comply with
After a front-end task is completed, many people forget the structure and details of the project. However, the Code is not completely finalized immediately, and there will be continuous maintenance work for the rest of the time, and these work may
Two years ago, I wrote a CSS unlimited tree menu: At that time, the tree I wrote had a fatal weakness: when the data volume was large, the browser was easily stuck. the Code has been rewritten over the past two days. In addition to the style of CSS,
All the time, I was trying to see if I could use col to control the column hiding in the table, but I was helpless, FF does not have good support for COL (in fact, we didn't find how to get COL under FF ). Today, when I was in a report with 52
Some CSSHack is collected to facilitate querying and shielding IE browsers (that is, they are not displayed in IE) when the compatibility problem is solved)
*: Lang (zh) select {font: 12px! Important;}/* FF dedicated */
Select: empty {font: 12px!
Pay attention to css coding m and css coding tutorials, which are a concern of many web page makers and developers. There is no magic. You can make sure that your style sheet is reduced to, but the CSS coding and organization skills are reasonable,
After reading this, you will understand the differences between class and id selector in css styles. You can define your own selector using class and id.
The benefit of doing so is that depending on the class or id, you can behave the same HTML
CSShack is a common method for implementing CSS Perfect compatibility with IE6IE7FF. CSS compatibility with various browsers is already a common issue. Web tutorials are everywhere. the following content is not too novel and is purely personal
In the development of Web, we have sorted out some points worth attention. We hope that we can provide some help and notes for those who are interested in this field:
1. The statements except DOCTYPE must be written in lowercase English letters.
I have read this article from poorfish. I don't think about anything else. Although div + css is popular now, many friends still use table, div + css mainly focuses on display speed, however, compatibility with multiple browsers is still a problem. 1
We recommend a good advanced usage of form Input. 11 Examples 1. dotted box when the cancel button is pressed
Add the attribute value hideFocus or HideFocus = true in input.
2. Read-only text box content
Add the attribute value readonly in input.
3
Css writing method that allows users to control the font size of web pages. Currently, most websites in China use CSS to set the font size to 12px. Although pixels are relative size units, they are only relative to the screen resolution, when the
We found four methods to use CSS style sheets on webpages: how to insert CSS into webpages
We have learned the CSS syntax before, but to display the effect in the browser, we need the browser to identify and call it. When the browser reads a style
We should develop good coding habits for using CSS overall layout declaration. CSS overall layout Declaration provides a way for us to simplify our code and improve the running efficiency. Let's list common forms and add explanations. The purpose of
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