使用META控制Web浏览器 [英] Controlling web browsers with META

查看:72
本文介绍了使用META控制Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望这是一个适合这篇文章的小组:)


我在这个页面上看到了控制浏览器的META标签。
http://www.bauser.com/websnob/meta/browsers.html

有些我知道,有些我很想知道并希望得到一个意见。


例如,作者声称http-equiv ="内容-Style-Type"

和http-equiv =" Content-Script-Type"是一种技术上的必须如果你正在使用内部事件属性(如onload或onclick),那么使用

和如果你使用style属性来添加样式个人

HTML元素" ;.


只有HTML 4.0的引用,我想知道那些必须还是

仍然(如果有的话)是必须?我不记得曾见过任何带有这些META标签的页面。


我也对http-equiv =& ;窗口靶" META在页面底部提到了

。我以前对此一无所知,但是如果有效的话,它可能是一个很好用的标签。但据我所知只有

适用于Netscape,也许甚至没有最新版本?


TIA


-

/ Arne

Hope this is a proper group for this post :)

I came across this page about META tags that control browsers.
http://www.bauser.com/websnob/meta/browsers.html

Some I know, some I wonder about and would like an opinion on.

For example, the author claims that http-equiv="Content-Style-Type"
and http-equiv="Content-Script-Type" is a echnically "must" to use if
you are using "intrinsic events attributes (like onload or onclick)"
and "if you''re using the style attribute to add styles to individual
HTML elements".

There is references only to HTML 4.0 and I wonder if those "must" is
still (if it ever was) a "must"? I can''t recall that I ever seen any
page with those META tags.

I''m also interested in the http-equiv="Window-target" META mentioned
on the bottom of the page. I had no knowledge about it before, but it
seems like a good tag to use if it works. But as I understand it only
works on Netscape, maybee not even in the latest versions?

TIA

--
/Arne

推荐答案

Arne写道:
Arne wrote:
作者声称http-equiv =Content-Style-Type和http-equiv =" Content-Script-Type"是一种技术上的必须如果您正在使用内部事件属性(如onload或onclick),则使用


根据HTML规范更正。因此正式要求。我怀疑它有任何实际意义。

和如果你使用style属性为各个
HTML元素添加样式。


我认为这也是正确的,但我必须检查以确保。这是与脚本类型授权一致的


我也对http-equiv =" Window-target" META在页面底部提到了
the author claims that http-equiv="Content-Style-Type"
and http-equiv="Content-Script-Type" is a echnically "must" to use if
you are using "intrinsic events attributes (like onload or onclick)"
Correct, according to the HTML spec. It is thus formally required. I
doubt that it has any practical implications.
and "if you''re using the style attribute to add styles to individual
HTML elements".
I think this is also correct, but I''d have to check to make sure. It is
consistent with the script-type mandate.
I''m also interested in the http-equiv="Window-target" META mentioned
on the bottom of the page.




该怎么办?我想,指示ua打开某个目标中的所有链接。听起来不错。


-

Brian



What is that supposed to do? Instruct the ua to open all links in a
certain target, I imagine. Sounds like a bad idea.

--
Brian


Arne写道:
http://www.bauser.com/websnob /meta/browsers.html

只有HTML 4.0的引用,我想知道那些必须是什么。仍然(如果有的话)是必须吗?我不记得曾见过任何带有这些META标签的页面。
http://www.bauser.com/websnob/meta/browsers.html

There is references only to HTML 4.0 and I wonder if those "must" is
still (if it ever was) a "must"? I can''t recall that I ever seen any
page with those META tags.



实际上4.01规格说应该,这意味着你必须做除非你有充分的理由不这样做,否则它将是b $ b。


''作者应该为所有剧本指定默认的脚本语言

在一份文件中,在HEAD中包含以下META声明''

http://www.w3.org/TR/html4/interact/...default-script


''作者应使用META元素为文档设置默认样式表

语言。''

http://www.w3.org/TR/html4/present/s ... #default-style


2005年1月22日星期六01:09:38 GMT,djn< de *** @ kozina.com>写道:
On Sat, 22 Jan 2005 01:09:38 GMT, djn <de***@kozina.com> wrote:
Arne写道:
http://www.bauser.com/websnob/meta/browsers.html

仅引用HTML 4.0,我想知道是否"必须"仍然(如果有的话)是必须吗?我不记得曾见过任何带有这些META标签的页面。
http://www.bauser.com/websnob/meta/browsers.html

There is references only to HTML 4.0 and I wonder if those "must" is
still (if it ever was) a "must"? I can''t recall that I ever seen any
page with those META tags.


实际上4.01规格说应该,这意味着你必须这样做
除非你有充分的理由不这样做。

''作者应该通过在HEAD''中包含以下META声明来为文档中的所有脚本指定默认脚本语言。 />( http://www.w3 .org / TR / html4 / interact / ... default-script
''作者应该使用META元素来设置文档的默认样式表
语言。''
http: //www.w3.org/TR/html4/present/s...#default-style



好​​奇。这使得以下非常愚蠢(18.2.1):


type = content-type [CI]

此属性指定元素的脚本语言' 's
内容并覆盖默认的脚本语言。

脚本

语言被指定为内容类型(例如,text / javascript)。

作者必须提供一个值这个属性。这个属性没有默认的

值。


为什么要说一个人应该指定默认语言然后说明

你必须覆盖它吗?它看起来非常像一个经典的委员会

决定。


-

Stephen Poley

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


这篇关于使用META控制Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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