且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

模仿顶部导航框架

更新时间:2023-12-05 12:54:46

Ian Rastall写道:
Ian Rastall wrote:
我一直在W3Schools CSS2参考中找不到,并且无法找到我正在寻找的东西。我有一个客户想要一个***框架的网站,包含导航链接,我想也许这可以用CSS完成。

IOW,重现那个顶部的框架在每一页中,也许作为一个SSI,
并保持它固定,所以页面的其余部分滚动到它​​下面。
这是可能的,如果是这样,怎么样?
I''ve been rooting about in the W3Schools CSS2 reference, and can''t
find what I''m looking for. I have a client who wants a site with a top
frame, to contain the nav links, and I was thinking that maybe this
could be done with CSS.

IOW, to reproduce that top "frame" in every page, perhaps as an SSI,
and to keep it fixed, so the rest of the page scrolls underneath it.
Is this possible, and if so, how?

>

有可能,使用position:fixed;但是浏览器的支持可能对你的应用程序来说还不够好,因为IE不支持它。

在IE中有一些可怕的拙劣的拙劣但是我可以

永远不会让他们完美地工作。


实现它的***方法是使用position:absolute; (或相对)
IE的b $ b,然后覆盖位置:fixed;使用选择器技巧

真正的浏览器。 IE将降级到正常状态,并且正常的

浏览器将修复该栏。


如果您的客户端绝对必须在多个浏览器中修复该栏

可能,帧不幸是***的解决方案,但让他/她知道框架的可访问性和可用性问题。


-

Mark。
http ://www.tranchant.freeserve.co.uk/



It is possible, using position: fixed; but browser support is probably
not good enough for your application, in that IE doesn''t support it.
There are a couple of hideous botches to fake it in IE, but I could
never get them to work flawlessly enough.

The best way to implement it is to use position: absolute; (or relative)
for IE, then override with position: fixed; using a selector trick for
real browsers. IE will degrade to the normal condition, and decent
browsers will fix the bar.

If your client absolutely must have the bar fixed in as many browsers as
possible, frames is unfortunately the best solution, but make him/her
aware of the accessibility and usability issues of frames.

--
Mark.
http://www.tranchant.freeserve.co.uk/


2003年7月22日星期二09:12:54 + 0100, Mark Tranchant< mt ****** @ ford.com>

写道:
On Tue, 22 Jul 2003 09:12:54 +0100, Mark Tranchant <mt******@ford.com>
wrote:
如果您的客户绝对必须将栏固定在尽可能多的栏中浏览器可能,框架不幸是***的解决方案,但让他/她了解框架的可访问性和可用性问题。
If your client absolutely must have the bar fixed in as many browsers as
possible, frames is unfortunately the best solution, but make him/her
aware of the accessibility and usability issues of frames.




谢谢。我只是在检查备选方案。


我遇到了第三种选择,我认为它被称为XFrames。

它在XHTML中家庭。不过我怀疑它有什么支持。


Ian

-
http://www.aspipes.org/
http://www.bookstacks.org/


2003年7月22日星期二09:12 :54 + 0100,Mark Tranchant< mt ****** @ ford.com>

写道:
On Tue, 22 Jul 2003 09:12:54 +0100, Mark Tranchant <mt******@ford.com>
wrote:
Ian Rastall写道:
Ian Rastall wrote:
我一直在W3Schools的CSS2参考中找到了根本,并且无法找到我正在寻找的东西。我有一个客户想要一个***框架的网站,包含导航链接,我想也许这可以用CSS完成。
I''ve been rooting about in the W3Schools CSS2 reference, and can''t
find what I''m looking for. I have a client who wants a site with a top
frame, to contain the nav links, and I was thinking that maybe this
could be done with CSS.


它是可能,使用位置:固定;但浏览器支持可能不适合您的应用程序,因为IE不支持它。
实现它的***方法是使用position:absolute; (或相对)
对于IE,


为什么不位置:静态(默认)?

然后覆盖位置:固定;使用真实浏览器的选择器技巧。 IE会降级到正常状态,而且不错的浏览器会修复吧。

如果你的客户绝对必须在尽可能多的浏览器中修复该栏,那么帧是不幸的是***的解决方案,但让他/她了解框架的可访问性和可用性问题。

It is possible, using position: fixed; but browser support is probably
not good enough for your application, in that IE doesn''t support it. The best way to implement it is to use position: absolute; (or relative)
for IE,
Why not position: static (the default)?
then override with position: fixed; using a selector trick for
real browsers. IE will degrade to the normal condition, and decent
browsers will fix the bar.

If your client absolutely must have the bar fixed in as many browsers as
possible, frames is unfortunately the best solution, but make him/her
aware of the accessibility and usability issues of frames.




小窗口(PDA等)的后果永久保留用于导航的屏幕。


当一个人读书时,我觉得不需要有一张桌子。

内容永久可见(至少我从未听说过任何人b / b
);我不确定为什么它会成为网络上的这种迷恋。


-

Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/