表格对齐适用于Firefox,而不适用于IE [英] Table align works in Firefox, not in IE

查看:89
本文介绍了表格对齐适用于Firefox,而不适用于IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

链接的页面 HERE 与使用Firefox完全一致。


使用Internet Explorer打开页面,您将看到问题。


< iframe> ''并没有像预期的那样出现在桌子的右侧,而是在它的下方。


我提前道歉,因为代码没有一尘不染。


如何让IE按预期显示页面?

解决方案

看起来像iframe的宽度可以成为一个问题为什么你不使用CSS定位它?你应该考虑使用div,如果它们更具风格。



看起来像iframe的宽度可能是个问题的原因你不是用CSS定位吗?你应该考虑使用div,如果它们可以更具样式。



我认为。


但是出现以下问题...


为了避免对50页进行相同的更改,我想只对一页进行更改。因此iframes。


有了DIV标签,我有以下问题......


1.如何放入网页我可以使用iframe的方式吗?


2.如何调整height属性的大小以允许显示所有内容而不管高度(正如我正在使用Javascript) ?


3.如果用户手动缩小浏览器的宽度,如何防止DIV和/或iframe内容落在按钮下方?


即使使用Firefox,如果你缩小你的浏览器,iframe会在它允许滚动之前落在按钮下方,我不希望它这样做。


我可以尝试使用DIV的解决方案,但与此同时,这3个问题仍然是非常相关的。


我还需要将它作为Javascripts和A标记的目标。


我还在研究DIV的东西......但与此同时,是否有人有任何想法如何使表格正常工作?

The page linked HERE appears precisely as intended using Firefox.

Open the page with Internet Explorer and you''ll see the problem.

The <iframe>''s don''t appear to the right of the table, as intended, but beneath it.

I apologize in advance for the code not being spotless and clean.

How do I get IE to show the page as intended?

解决方案

It looks like the width of the iframe could be a problem why don''t you position it using CSS? You should consider using a div if you can they are more stylable.


It looks like the width of the iframe could be a problem why don''t you position it using CSS? You should consider using a div if you can they are more stylable.

I considered it.

But the following problem comes up...

To avoid having to make the same changes to 50 pages, I want to make changes to just one page. Hence the iframes.

With DIV tags, I have the following questions...

1. How do I put in a web page the way I can with iframes?

2. How do I resize the height attribute to allow for all content to be displayed regardless of height (as I''m doing with the Javascript)?

3. How do I prevent the DIV and/or iframe content from dropping below the buttons if a user manually reduces the width of their browser?

Even with Firefox, if you narrow your browser the iframe drops below the buttons before it allows scrolling, and I don''t want it to do that.

I can try a solution using DIVs, but in the meantime those 3 questions are still highly pertinent.

I also need it to be targeted by Javascripts and A tags.


I''m still working on the DIV stuff... but in the meantime does anyone have any ideas how to get the tables to work correctly?


这篇关于表格对齐适用于Firefox,而不适用于IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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