本文介绍了IE6和fieldset背景色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我在CSS和IE6兼容性方面遇到了一些困难.

Hey, I'm having some difficulty with CSS and IE6 compatibility.

URL : http://bit.ly/dlX7cS

问题1::我在CanadaUnited States周围的字段集上放置了背景图片.在IE6和IE7中,背景在字段集的边框顶部上方出血.

Problem #1: I put a background image on the fieldset around Canada and United States. In IE6 and IE7, the background bleeds above the border-top of the fieldset.

因此,我找到了解决方法.它仅适用于IE浏览器,并将图例上移几个像素,从而使背景正确对齐.

So, I found a fix. It is applied only to IE browsers, and moves the legend up a few pixels, aligning the background correctly.

<!-- Fix: IE6/IE7, Legends -->
<!--[if lte IE 7]>
    <style type="text/css">
        fieldset {
            position: relative;
        }
        fieldset legend {
            position: absolute;
            top: -0.5em;
            left: 0;
        }
    </style>
<![endif]-->

这修复了IE7.但是在IE6中,这似乎使我对Canada的传奇完全消失了.有关如何修复它的任何建议?

This fixes IE7. But in IE6, it seems to make my legend for Canada vanish completely. Any suggestions on how to fix it?

推荐答案

IE6字段集修复: http ://www.gunlaug.no/tos/moa_18.html

IE6 fieldset fix: http://www.gunlaug.no/tos/moa_18.html

对于iframe错误,请尝试为IE6设置"overflow:hidden". (您可以像_overflow:hidden;(下划线是一个唯一的hack)

For the iframe bug try setting an overflow:hidden for IE6. (you can do it like _overflow:hidden;(underscore is a ie only hack)

下次将两个不同的问题分开-其他人更容易搜索相同的问题.

Next time split two different questions - it's easier for others searching for same problem.

这篇关于IE6和fieldset背景色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 13:54
查看更多