简体   繁体   English

IE中的CSS Div定位问题

[英]CSS Div positioning problem in IE

I have a JQ slideshow in a div on this page: http://www.lucky-seed.com/web.html 我在这个页面的div中有一个JQ幻灯片: http//www.lucky-seed.com/web.html

and have a css sheet for IE with the following style: 并为IE提供具有以下样式的css表:

.slideshow { height: 599px; width: 700px; 
max-width: 700px
margin-top: 00px;
margin-left: 295px;
float:left;
position: relative;
display: inline;}

Where am I going wrong? 我哪里错了? It looks great in everything but IE, but once in IE, I can't seem to move the position around no matter what I do. 除了IE之外,它看起来很棒,但是一旦进入IE浏览器,无论我做什么,我似乎无法移动位置。

Thanks in advance for your insights. 提前感谢您的见解。

Hello fellow Pittsburgher :P 你好邻居Pittsburgher:P

You've got so many different, conflicting styles going on there. 你有很多不同的,相互矛盾的风格。 While it's not a specific answer, might I suggest using a CSS framework like Blueprint ( http://www.blueprintcss.org/ ) to better manage your columns with greater simplicity and let it worry about IE compatibility. 虽然这不是一个具体的答案,但我建议使用像Blueprint( http://www.blueprintcss.org/ )这样的CSS框架来更好地管理您的列,并让它担心IE的兼容性。 Rolling columns yourself is usually unnecessary these days. 这些天通常不需要自己滚动列。

In ieweb.css , try changing the margin-top on .slidenav to 50px , instead of -20px . ieweb.css ,尝试将ieweb.cssmargin-top .slidenav50px ,而不是-20px

That moves the arrows to approximately the same place that they are in Firefox. 这会将箭头移动到与Firefox相同的位置。


It might be an idea to scrap the IE specific stylesheets and do them again if need be. 如果需要,可能会废弃IE特定的样式表并再次执行它们。 If you remember your question from yesterday , you had a weird issue with comments. 如果你记得昨天问题 ,你就会有一个奇怪的评论问题。 Those comments were causing parsing errors on your pages for IE, so I imagine a lot of the "fixes" in your IE stylesheets are no longer required now you've sorted those comments. 这些评论导致你的网页上的解析错误,所以我想你的IE样式表中的很多“修复”现在不再需要你现在已经对那些评论进行了排序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM