domino的doctype修改

浏览器都有怪癖模式(Quirks Mode)和标准模式(Standards Mode)。怪癖模式是为了兼容老旧的网页,去模拟早期浏览器(如 IE5.5)的非标准实现;而标准模式会尽可能的按照标准去执行。而激活不同模式的关键正是 HTML 页面的 DOCTYPE。

以前做domino的开发时,就有同事遇到相关的问题,问题的解决需要修改到doctype。下面是相应说明与修改方法:

/*******************这部分摘自 What's new in Notes/Domino 7.0.2***********开始***************/

User-defined HTML tag attributes
User-defined attributes can now be added to the <HTML> tag generated by the web engine. When the field $$HTMLTagAttributes is present on a form, its contents are placed in the attribute list of the <HTML> tag. For more information, see "Additional HTML-related field attributes" in these release notes

Custom <!DOCTYPE> declaration
Users can now specify a custom <!DOCTYPE> declaration on a per form basis. When the field $$HTMLFrontMatter is present on a form, its contents will be placed in the generated HTML, ahead of the <html> tag, and the web server will not generate anything there automatically. For more information, see "Additional HTML-related field attributes" in these release notes

/*******************这部分摘自 What's new in Notes/Domino 7.0.2***********结束***************/

可以看到新版本提供了一个表单域来控制doctype。不过,在Domino7.02后的版本中才支持这个域,在之前的版本中只能在notes.ini中添加参数:DominoCompleteDoctype解决。
具体参数值:
0 = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

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

2 = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "" title="http://www.w3.org/TR/html4/strict.dtd">">http://www.w3.org/TR/html4/strict.dtd">

相关信息来源自  搜狐

» 转载保留版权:《domino的doctype修改》
» 本文链接地址:https://www.xidige.com/224

打开支付宝扫一扫,即可进行扫码打赏哦

扫码支持
扫码打赏,你说多少就多少

标签:

分享到:

扫一扫 在手机阅读、分享本文

上一篇: 下一篇:
评论区0人评论234人参与

电子邮件地址不会被公开。 必填项已用*标注

*

loading

赞助商广告