Internet Explorer的css问题。 (隐藏填充) [英] Internet explorer css problem. (Hidden padding)
问题描述
我使用jQuery UI创建了一个小滑块,它在Firefox中非常有效,完全如其。但是,在IE中,它似乎将填充放在对象之间。看一看,你会看到:
http://www.grant [deletethis] unwin.co.uk/slider/slider1.html
我知道不同的broswers会自动设置不同的页边距和填充,所以我尝试使用:
* {
padding:0px;
margin:0px;
}
但问题仍然存在。
问题:
我怎样才能消除滑块(IE)中图片之间的空白?
您的网页以怪癖模式呈现,因为您没有使用文档类型(..这将触发标准模式)。
您的第一行目前是这样的:
< html>
添加doctype作为第一行,如HTML5 doctype:
<!DOCTYPE html>
它会被神奇地修复。
I have created a little slider using jQuery UI, and it's works fantastically in Firefox, exactly as it should. However, in IE, it seems to put padding in between objects. Take a look and you'll see:
http://www.grant[deletethis]unwin.co.uk/slider/slider1.html
I understand that different broswers have different page margins and paddings set automatically, so I tried to use:
* {
padding: 0px;
margin: 0px;
}
But the problem persists.
The Question:
how can I eliminate the gaps between the pictures on my slider (In IE)?
Your page is rendering in Quirks Mode, because you aren't using a doctype (..that will trigger Standards Mode).
Your first line is currently this:
<html>
Add a doctype as the very first line, such as the HTML5 doctype:
<!DOCTYPE html>
It will be magically fixed.
这篇关于Internet Explorer的css问题。 (隐藏填充)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!