CSS表现得像帧? [英] CSS acting like frames?

查看:63
本文介绍了CSS表现得像帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让css像一个简单的2帧设置一样。


我想在所有页面上都有一个固定的导航标题,网站本身就有100多个

页面,每页都有多页子页面。


所以我在框架中可以做的是有2帧并点击标题

框架会在主框架中加载一个单独的html页面,因此不需要重复标题代码100次以上,这可以用css完成吗?


我知道css可以使用浮点数或固定的标题位置,甚至可以使用边距来实现
技巧,即固定标题部分。但是这似乎仍然是我必须在每个页面上重复标题css,如果标题始终保持加载状态,那么它只会更多

,因为它使用框架。

或者这个场景不会在css YET中运行吗?


BTW每页都是顶部标题,固定高度和宽度,主体是

可上下滚动。


TIA(先谢谢你)

-
ka ******* @ hotmail.comc omcom

- =< FreeWare ForEver> = -

Is there a way to allow css to act like a simple 2 frame setup.

I want a fixed navigation header on all pages, website itself has 100+
pages, each is multi paged with sub pages.

So what I could do in frame is have 2 frames and clicking in the header
frame would load a seperate html page in the main frame, therefore not
having to repeat the header code 100+ times, can this be done using css?

I know css can use a float or fixed header position, even using margins to
trick ie into making a header section fixed. But this still seems like I
would have to repeat the header css on each page, it would just be more
fluid if the header always stayed loaded as it does using frames.
Or is this scenario not going to work in css YET?

BTW each page is header on top, fixed height and width, and main body is
scrollable up/down.

TIA (Thank-you In Advance)
--
ka*******@hotmail.comcomcom
-=< FreeWare ForEver >=-

推荐答案

没有css不是真的像这样工作。如果您的网站位于unix

计算机上,那么您可能希望使用服务器端包含(SSI)。你

在你的页面中使用一些简单的程序来调用另一个文件

。该页面由服务器在用户获取之前由多个文件

组装。


搜索SSI或查看此随机站点:
http://www.htmlgoodies.com/beyond/we ...... le.php / 3473341

No css doesn''t really work like this. If your web site is on a unix
machine then you probably want to use a server side include (SSI). You
use some simple programing in your page to call another document to be
inserted. The page is assembled by the server from multiple files
before the user gets it.

Do a search on SSI or check this random site:
http://www.htmlgoodies.com/beyond/we...le.php/3473341


或者说你应该试试PHP include()。
Or say you should give PHP include() a try.


在文章< 11 ********************* @ i40g2000cwc.googlegroups中。 com>,

" aa ****** @ gmail.com" < AA ****** @ gmail.com>写
In article <11*********************@i40g2000cwc.googlegroups. com>,
"aa******@gmail.com" <aa******@gmail.com> writes
或者说你应该试试PHP include()。
Or say you should give PHP include() a try.




事实上,任何现代网络平台都会给你一个方法在服务器端包含

文件。 CGI,ASP,ASP.NET,Cold Fusion,PHP,你的名字

it,有很多它们。


真的有当网络服务器现在如此强大时,框架的理由非常少。


-

Alan Silver

(此行下面添加的任何内容与我无关)



The truth is that any modern web platform will give you a way to include
files on the server side. CGI, ASP, ASP.NET, Cold Fusion, PHP, you name
it, there''s loads of them.

There''s really very little justification for frames when web servers are
so powerful nowadays.

--
Alan Silver
(anything added below this line is nothing to do with me)


这篇关于CSS表现得像帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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