破解Firefox中嵌套div布局的图像(在IE中正常工作) [英] Images breaking nested div layout in firefox (works fine in IE)

查看:107
本文介绍了破解Firefox中嵌套div布局的图像(在IE中正常工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,你好(第一次发布海报)。


问题的网址: http://www.type3studios.com/?projects


(我想你可以从那里抓取html和css ,但如果你想,我会发布它。)


编辑:如果你抓住我的CSS和HTML,你主要是在找.block,.blocka和.blockb部分。


在该网站上,我正在使用无序的div显示列表:table-row和display:table-cell;设置几行各3行的技巧。他们工作正常没有图像如下所示。


(如果这个网址发生变化,我会包含一些图片以帮助解释)

first of all, hello (first time poster).

the url in question: http://www.type3studios.com/?projects

(i guess you can grab the html and css from there, but if you want, i''ll post it.)

if you do grab my css and html, you''re mainly looking for the .block, .blocka, and .blockb sections.

on that site, i''m using the "unordered list of divs with display:table-row and display:table-cell" trick to set up several rows of 3 boxes each. they work fine without images as shown below.

(in case this url changes, i''m including some pictures to help explain)

推荐答案

我周末走出门,但你可以检查的事情:

1)验证你的html是否有一个错误,CSS是4。没有''浮动:中心''这样的东西。

2)检查你的div是否有IE漏洞。 IE扩展元素以包含浮动和绝对定位的元素。这是不正确的行为,但可能导致问题。


对不起,我没有时间做更多。
I''m walking out the door for the weekend but things you can check:
1) Validate your html for one error and CSS for four. There is no such thing as ''float:center''.
2) Check your divs for this IE bug. IE expands elements to contain floated and absolutely positioned elements. This is incorrect behavior but could be causing the problem.

Sorry I don''t have time to do more.


谢谢你的支持回复。


注意:有问题的页面已移至:

http://www.type3studios.com/test/?projects


虽然我全心全意地感谢你的回复,但我不确定你是否理解我原来的帖子。 ..该页面在IE中运行良好,但在Firefox中中断。这本身似乎是落后的;-)大部分时间都在努力更新这个网站,这是IE需要的调整,但在这种特殊情况下,它是相反的。


无论如何,我会继续修补,如果你或任何人有任何想法,一定要让我知道!
thank you for your reply.

NOTE: the page in question has been moved to:
http://www.type3studios.com/test/?projects

the CSS now validates, but the HTML validation fails because i used a div with nothing in it, but with a background image for the main site "banner" image. (so i could easily switch out the image with the style switcher at the bottom). anyhow, i don''t think that error is affecting this one.

while i thank you whole heartedly for your response, i''m not sure if you understood my original post... the page works fine in IE, but breaks in Firefox. That in and of itself seems backward ;-) most of the time working on updating this site it''s been IE that''s needed tweaks, but in this particular case it''s the other way around.

anyhow, I''ll keep tinkering and if you or anyone else has any ideas, be sure to let me know!


好吧,我似乎有回答了我自己的问题。


i取代了以下CSS代码:

well, i seemed to have answered my own question.

i replaced the following CSS code:

展开 | 选择 | 换行 | 行号


这篇关于破解Firefox中嵌套div布局的图像(在IE中正常工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆