如何在Internet Explorer中使用CSS模拟帧? [英] how to emulate frames with CSS in Internet Explorer?

查看:63
本文介绍了如何在Internet Explorer中使用CSS模拟帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的小组,


我现在设法通过

来模拟基于mozilla的浏览器中的帧状行为,但它并不适用于Internet资源管理器6.


有人可以浏览我创建的测试网页上的代码

并且可能会留下一些提示我需要更改以使基于CSS

布局(1)看起来像基于帧的布局(2)?


这是它的样子:

(1) http://tomasio.laudatio.com/temp/ Cb_meyerframes.html


这就是我希望它出现在IE中的方式:

(2) http://tomasio.laudatio.com/temp/Frametest_HTML.html
< br $> b $ b ---


接下来我想要你问的是:

模仿CSS的框架是否有意义,还是打赌呃

坚持使用框架?


提前感谢您的帮助


-

亲切的问候,

tomasio

描述问题揭示了解决问题的方法

解决方案

tomasio< da **** @ jan.et>写道:

我现在设法在基于Mozilla的浏览器中模拟框架状行为,但是它不适用于Internet Explorer 6.
<有人可以浏览我创建的Test-Webpages上的代码吗?或许可以给我一些提示,我必须改变以使基于CSS的
布局(1)看起来像框架 - 基于布局(2)?

这是它的样子:
(1) http://tomasio.laudatio.com/temp/Cb_meyerframes.html

这就是我希望它出现在IE中的方式:
(2) http://tomasio.laudatio.com/ temp / Frametest_HTML.html

IE不支持位置:已修复。在你的情况下:无论如何固定不是
,所以使用position:absolute。你还需要

做一些更改。


这是一个在IE,Opera和

Gecko: http://steve.pugh.net/test /frames.html


代码需要触发怪癖模式以便工作的事实

可能是某种警告。 ..

接下来我想要你问的是:
用CSS模拟框架是否有意义,或者更好地坚持使用框架?



框架有很多或者问题,避免它们总是一个很好的举动。


框架的一些问题(书签,搜索引擎,破坏

后退按钮等)与帧的功能有关

因此CSS替换避免了这些问题,但它也避免了

福利(例如避免重复下载常见内容)。


但是,帧的一些问题是由于它们在屏幕上的外观(例如浪费的屏幕空间)和CSS仿真是

来模拟这些问题。


史蒂夫


-

我的理论给你起见,我的异端邪说激怒了你,

我从不回信,你也不喜欢我的领带。 - 医生


Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>


Thanx给了你很多帮助,史蒂夫。如果我能为你做任何事情在

返回,请告诉我。

-

亲切的问候,

tomasio

描述问题揭示了解决问题的方法


< SNIP>

这是一个在IE,Opera和
Gecko中大致相同的版本: http://steve.pugh.net/test/frames.html



< SNIP>

嗯,这根本不会模仿帧。框架允许你在其中放置

其他页面,你不能用你的设计

来做。


Dear Group,

I managed to simulate framelike behaviour in mozilla-based browsers by
now, but it doesn''t work out with Internet Explorer 6.

Could someone glance through the code on the Test-Webpages I created
and maybe leave me a hint what I have to change to make the CSS-based
Layout (1) look like the Frames-based Layout (2)?

This is how it looks like:
(1) http://tomasio.laudatio.com/temp/Cb_meyerframes.html

This is how I''d like it to appear in IE:
(2) http://tomasio.laudatio.com/temp/Frametest_HTML.html

---

the next thing what i wanted you to ask:
does emulating frames with CSS make sense at all, or is it better to
stick to Frames?

thank you in advance for your help

--
kind regards,
tomasio
"describing an issue reveals the way to solve it"

解决方案

tomasio <da****@jan.et> wrote:

I managed to simulate framelike behaviour in mozilla-based browsers by
now, but it doesn''t work out with Internet Explorer 6.

Could someone glance through the code on the Test-Webpages I created
and maybe leave me a hint what I have to change to make the CSS-based
Layout (1) look like the Frames-based Layout (2)?

This is how it looks like:
(1) http://tomasio.laudatio.com/temp/Cb_meyerframes.html

This is how I''d like it to appear in IE:
(2) http://tomasio.laudatio.com/temp/Frametest_HTML.html
IE doesn''t support position: fixed. In your case position: fixed isn''t
needed anyway, so use position: absolute instead. You also need to
make a few more changes.

Here''s a version that works more or less the same in IE, Opera and
Gecko: http://steve.pugh.net/test/frames.html

The fact that the code needs to trigger quirks mode in order to work
could be a warning of some sort...
the next thing what i wanted you to ask:
does emulating frames with CSS make sense at all, or is it better to
stick to Frames?



Frames have a lot or problems and avoiding them is always a good move.

Some of the problems of frames (bookmarking, search engines, broken
back buttons, etc.) are related to the functionality of frames ans
thus a CSS replacement avoids those issues, but it also avoids the
benefits (e.g. avoiding repeated downloading of common content).

However, some of the problems of frames are due to their on screen
appearance (wasted screen space for example) and a CSS emulation is
going to emulate these problems.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


Thanx a lot for your help, steve. if I can do anything for you in
return, let me know.
--
kind regards,
tomasio
"describing an issue reveals the way to solve it"


<SNIP>

Here''s a version that works more or less the same in IE, Opera and
Gecko: http://steve.pugh.net/test/frames.html


<SNIP>

Well, this doesn''t emulate frames at all. Frames allow you to place
other pages inside of them and you can not do that with the design
you have.


这篇关于如何在Internet Explorer中使用CSS模拟帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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