Put img images in li. The bug is that there is a 3px gap between images, and adding height to li is also invalid. The solution to the gap between images is as follows: add style img {vertical-align: bottom; display: block} directly}
Of course, it
This article will share with you the code that perfectly achieves compatibility with the floating elements displayed in the center of each browser. It is very simple and practical. If you need it, you can refer to it. We often encounter a page
Ie6 does not support position: fixed. There are many solutions on the Internet. Some are difficult to solve on ie8 after debugging on ie6 and ie7. The div layer still follows the scroll bar; in the following summary, debugging is successful on ie6,
This article mainly introduces tips for dealing with div content overflow. For more information, see
Tips for handling p content overflow _ CSS/HTML
A problem occurred a few days ago. The code is at this level:
The Code is as follows:
1
This article summarizes some common browser compatibility problems and solutions in Css.
I. translucent webpage backgroundTranslucent webpage background
The Code is as follows:
Opacity: 0.8;Filter: "progid: DXImageTransform. Microsoft. Alpha
Shield IE browsers (that is, do not display IE) *: lang (zh) select {font: 12px! Important;}/* FF dedicated */
Select: empty {font: 12px! Important;}/* safari visible */
Here, select is the selector, which can be changed as needed. The second
In Firefox, When you click a link, a dotted border appears around it. This example is used everywhere. When I write this article in the WordPress background, I click the widgets on the right to see this problem (the top right corner of the image).
Talking about the differences between href # And hrefjavascript: void (0). For more information, see # "contains a location information.
The default anchor is # top, that is, the top of the web page.
Javascript: void (0) only indicates a dead link.
When a floating element is adjacent to a non-floating element, this 3-pixel Bug occurs, and it is offset by 3 pixels. As long as the hasLayout of IE is triggered, non-floating elements have a layout. Therefore, you can fix this problem by using the
Below are some of the compatible javascript expressions compiled by experts in ie and ff.
Png transparentAlphaImageLoader
Filter: progid: DXImageTransform. Microsoft. AlphaImageLoader (enabled = bEnabled, sizingMethod = sSize, src = sURL)
Enabled:
When assigning IDs and class names, try to keep them unrelated to the representation. For example, contleft may appear on the right in the future. Use less classes as much as possible, because they can be identified in layers, such as. News h3
I am very good at explaining some of iehack's writing methods. When I recently made a drop-down menu, I plan to use pure CSS. I suddenly saw the headache of CSS hack code (I usually seldom pay attention to it ), record down for backup.
.........
Use scripts to control the div height, and the buffering effect is good.
The Code is as follows:
The script controls three rows and three columns adaptive height DIV Layout
IE7 already supports position: fixed. What about our IE6? Continue using js events? Resources are consumed, the structure is damaged, and images are shining. Today, I went to a foreign site and saw that the website was very smooth but not js. I was
People who have used DIV + CSSseo tutorials to deploy websites will like this method. Although traditional table visualization is not used at first, they will feel the superiority of DIV + CSS when used to it. In practical applications, I searched
The reason why IE is not good is that IE will mislead your understanding of the CSS model and make you think that IE is correct, in any case, you will not be able to use your IE Model Theory to provide a fix for the CSS that cannot be normally
It has been a headache for me for a long time, that is, the problem of image scaling. Write it into JS and it is not easy to modify. Write it into CSS. IE6 does not support max-width. It took a long time to solve this problem, which is basically
During the process of creating a webpage, you will always encounter various issues with CSSXHTML. Below we will summarize the following 1. Many compatibility issues, because different labels have different default values for padding margin in
Css is a classic application, which facilitates webpage lovers to produce better results. The two sides of the text are aligned:
The Code is as follows:
Text-align: justify;Text-justify: inter-ideograph;
Clear floating:
The Code is as follows:
.
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