在css中包含navbar的内容? [英] include content of navbar in css?

查看:76
本文介绍了在css中包含navbar的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


在w3c网站上:
http://www.w3.org/Style/Examples/011/firstcss


有一个第一次尝试的例子一个CSS。是否有可能



css中不仅包含表格而且包含导航栏的内容?


适用于应该包含相同

导航栏的网页。

谢谢


Uwe Brauer

Hello

In the w3c website:
http://www.w3.org/Style/Examples/011/firstcss

There is an example of a first attempt of a css. Is it possible that
Not only the form but also the content of navbar is included in the
css?

That would be useful for web pages which should all contain the same
navbar.
Thanks

Uwe Brauer

推荐答案

2004年6月30日星期三17:31:24 +0200,Uwe Brauer< ou * @ mat.ucm.es>写道:
On Wed, 30 Jun 2004 17:31:24 +0200, Uwe Brauer <ou*@mat.ucm.es> wrote:
你好

在w3c网站上:
http://www.w3.org/Style/Examples/011/firstcss

有一个例子css的第一次尝试。是否有可能
css中不仅包含表单而且还包含导航栏的内容?

这对于应该包含相同内容的网页非常有用
navbar。
Hello

In the w3c website:
http://www.w3.org/Style/Examples/011/firstcss

There is an example of a first attempt of a css. Is it possible that
Not only the form but also the content of navbar is included in the
css?

That would be useful for web pages which should all contain the same
navbar.




CSS不允许在这里和那里包含超出一些琐碎的额外文本的内容。你肯定不能,至少没有主要的麻烦,只用CSS创建一个完整的导航栏结构。


这种事情*可以*通过将一个XSLT样式表应用于生成更复杂的HTML文档的

基本HTML文档来完成,但

浏览器对此的支持是不稳定的,您将需要提供服务

您的HTML文档为XML,这将阻止旧浏览器的用户

处理它们。


一种方法是在Accept

标题中查找XHTML内容类型,如果没有,请在服务器上进行XSLT预处理

而不是客户端。但是,一旦你开始在

服务器上进行预处理,就可以更容易地为每个人在服务器上进行预处理。


小心,

-Claire



CSS does not allow for the inclusion of content beyond some trivial
extra text here and there. You certainly can''t, at least without major
pains, create an entire navigation bar structure in CSS alone.

This kind of thing *can* be done by applying an XSLT stylesheet to a
basic HTML document which generates a more complex HTML document, but
browser support for this is spotty and you will be required to serve
your HTML documents as XML, which will prevent users of old browsers
from dealing with them at all.

One approach is to look for the XHTML content-type in the Accept
header and, if it''s absent, do the XSLT preprocessing on the server
rather than the client. However, once you start preprocessing on the
server it''s easier just to preprocess on the server for everyone.

Take care,
-Claire


2004年6月30日, fa ** @ invalid.com 写道:
On 30 Jun 2004, fa**@invalid.com wrote:
2004年6月30日星期三17:31:24 +0200,Uwe Brauer< ou * @ mat.ucm.es>
写道:

CSS不允许在这里和那里包含超出一些琐碎的额外文本的内容。你当然不能,至少没有主要的痛苦,只在CSS中创建一个完整的导航栏结构。

这种事情*可以通过应用XSLT样式表来完成一个基本的HTML文档,它生成一个更复杂的HTML文档,但是浏览器对此的支持是不稳定的,你将需要以HTML格式提供HTML文档,这将阻止旧的用户
浏览器根本不处理它们。

一种方法是在Accept
标题中查找XHTML内容类型,如果没有,请执行在服务器上进行XSLT预处理而不是客户端。但是,一旦你开始在服务器上进行预处理,就可以更容易地为每个人在服务器上进行预处理。

小心,-Claire
On Wed, 30 Jun 2004 17:31:24 +0200, Uwe Brauer <ou*@mat.ucm.es>
wrote:

CSS does not allow for the inclusion of content beyond some trivial
extra text here and there. You certainly can''t, at least without
major pains, create an entire navigation bar structure in CSS alone.

This kind of thing *can* be done by applying an XSLT stylesheet to a
basic HTML document which generates a more complex HTML document,
but browser support for this is spotty and you will be required to
serve your HTML documents as XML, which will prevent users of old
browsers from dealing with them at all.

One approach is to look for the XHTML content-type in the Accept
header and, if it''s absent, do the XSLT preprocessing on the server
rather than the client. However, once you start preprocessing on the
server it''s easier just to preprocess on the server for everyone.

Take care, -Claire




非常感谢您的回复,所以在我看来没有

简单的解决方案来解决我的问题。我们的网页(在部门)

包含当前帧,所有不便的帧

导致。这就是为什么我想用css。因为我想简单地保持

页面并牢记
http://www.anybrowser.org/campaign/

我不太习惯使用XSLT,但这也是由我的
$ b引起的$ b缺乏知识。


同时做谷歌搜索,我发现有人发布了一个使用javascript的

解决方案,但它似乎既不起作用。

问候


Uwe



Thanks very much for this respond, so it seems to me there is no
simple solution to my problem. Our webpage (in the department)
contains at the moment frames, with all the inconveniences frames
causes. That''s why I thought of using css. Since I want to keep the
page simple and keeping in mind
http://www.anybrowser.org/campaign/
I am not very much tempted to use XSLT, but this is also caused by my
lack of knowledge.

Meanwhile doing a google search, I found that someone posted a
solution using javascript, but it does not seem to work neither.
Regards

Uwe


2004年6月30日星期三18:07:45 + 0200,Uwe Brauer< ou *@mat.ucm.es>写道:
On Wed, 30 Jun 2004 18:07:45 +0200, Uwe Brauer <ou*@mat.ucm.es> wrote:

非常感谢您的回复,所以在我看来,我的问题没有简单的解决方案。我们的网页(在部门)
目前包含框架,带来所有不便之处。这就是为什么我想用css。因为我想保持简单的页面并牢记
http ://www.anybrowser.org/campaign/
我不太习惯使用XSLT,但这也是由于我缺乏知识造成的。
解决方案,但它似乎也没有用。

Thanks very much for this respond, so it seems to me there is no
simple solution to my problem. Our webpage (in the department)
contains at the moment frames, with all the inconveniences frames
causes. That''s why I thought of using css. Since I want to keep the
page simple and keeping in mind
http://www.anybrowser.org/campaign/
I am not very much tempted to use XSLT, but this is also caused by my
lack of knowledge.

Meanwhile doing a google search, I found that someone posted a
solution using javascript, but it does not seem to work neither.




PHP。您可以在服务器

为UA提供页面之前在HTML中包含一段代码,您甚至可以精确操作基于如何选择或组装

片段的方式其他参数。

http://www.php.net


这篇关于在css中包含navbar的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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