覆盖分配的doctype [英] overwriting the doctype assigned

查看:61
本文介绍了覆盖分配的doctype的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我希望我的帖子位于正确的位置,在所有情况下,您的意见反馈将不胜感激

当我创建一个html页面lanch it (包含flash对象)它在direfox和IE中运行良好

我使用domino服务器应用程序导入这些页面,默认情况下添加以下内容

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN" " HTTP://www.w3.org/TR/html4/loose.dtd" >


如果我添加自己的doctype它已经消失了,而domi no engine分配的那个总是添加到页面的那个


我的问题是:如何在导入之后覆盖添加的doctype:<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN"

女巫是我想要使用的...


所以更简单的说法......

我创建了一个网页...它可能有任何doctype或none ...当我导入以下内容时,指定:

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN" " HTTP://www.w3.org/TR/html4/loose.dtd" >

如何用anothor值覆盖,例如:<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN"


无论如何从html代码执行此操作? CSS?或javascript


谢谢

Hello everyone,
I hope that my post is in the proper location and in all cases your comments feedback will be appreciated
When I create an html page lanch it (contains flash object) it works fine in both direfox and IE
I use domino server application to import those pages and by default the following is added
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >

if I add my own doctype it''s gone and the one assigned by the domi no engine is always the one added to the page

my question is: how to overwrite the doctype added after the import to something like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
Witch is what I want to use...

so in simpler terms...
I have a webpage created...it could have any doctype or none...when I imported the following is assigned:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
How to overwrite with anothor value eg: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

Anyway of doing this from the html code? CSS? or javascript

thanks

推荐答案

大家好,

我希望我的帖子在正确的位置,在所有情况下,您的评论反馈将不胜感激

当我创建一个HTML页面启动它(包含Flash对象)它在Firefox和IE浏览器中工作正常

我使用domino服务器应用程序导入这些页面,默认情况下会添加以下内容

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN" " HTTP://www.w3.org/TR/html4/loose.dtd" >


如果我添加自己的doctype它已经消失了,多米诺引擎指定的那个总是添加到页面的那个


我的问题是:如何在导入之后覆盖添加的doctype:<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN"

女巫是我想要用的...


所以更简单的说法......

我创建了一个网页...它可以有任何doctype或none ...当我导入时,分配了以下内容:

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN" " HTTP://www.w3.org/TR/html4/loose.dtd" >

如何用anothor值覆盖,例如:<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.0 Transitional // EN"


无论如何使用javascript或任何其他的poirposal ....


感谢
Hello everyone,
I hope that my post is in the proper location and in all cases your comments feedback will be appreciated
When I create an html page launch it (contains flash object) it works fine in both firefox and IE
I use domino server application to import those pages and by default the following is added
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >

if I add my own doctype it''s gone and the one assigned by the domino engine is always the one added to the page

my question is: how to overwrite the doctype added after the import to something like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
Witch is what I want to use...

so in simpler terms...
I have a webpage created...it could have any doctype or none...when I imported the following is assigned:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
How to overwrite with anothor value eg: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

Anyway of doing this using javascript or any other poirposal....

thanks


据我所知DOM提供只读访问权限到了DTD。


但是在文件加载后(或多或少),DTD替换会带来什么好处呢?


有意义,你必须在服务器端进行更换,或者从一开始就提供DTD。


我不明白为什么你需要HTML 4.0 over HTML 4.01。
as far as I know the DOM provides readonly access to the DTD.

but what good would a DTD replacement bring after the document was loaded (more or less)?

to make sense, you have to do the replacement on the server side or maybe provide a DTD from the start.

and I don?t see why you would need HTML 4.0 over HTML 4.01.



无论如何从html代码执行此操作? CSS?或者javascript
Anyway of doing this from the html code? CSS? or javascript



他们两个都没有。

____________

neither of them.
____________


这篇关于覆盖分配的doctype的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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