以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Web架构 』   (http://bbs.xml.org.cn/list.asp?boardid=66)
----  新做的一个通过W3C的页面  (http://bbs.xml.org.cn/dispbbs.asp?boardid=66&rootid=&id=59522)


--  作者:ecctao
--  发布时间:3/6/2008 5:56:00 PM

--  新做的一个通过W3C的页面
http://www.chipshow.net/test/index.html
我用div+css做的一个新页面,已经通过W3C的认证,
DIV+CSS还是很牛的,一下子就使页面的代码减少了80%以上!
我以前的页面是   http://www.chipshow.net
这个页面的大小是50K的样子,
现在用DIV+CSS一改,代码的大小大概降到9.3K了,
还有引用的代码也明显减少了!(所以说减少了80%的代码.)

但是这个新页面还是存在一定的不美观的地方,比较难改,主要是我现在没有找到一个比较合手的布局工具,这个页面基本是用TXT写的,所以工程量有点大,CSS里面还有一定的杂音.
以后可以慢慢改,毕竟架构已经搭建起来了!


还有一点想请教高手的是,在搞W3C测试的时候还有2个警告,望高手能够指点下:


Potential Issues
The following missing or conflicting information caused the validator to perform guesswork prior to validation. If the guess or fallback is incorrect, it may make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.

Byte-Order Mark found in UTF-8 File.

The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

Conflict between Mime Type and Document Type

The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:

If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.


--  作者:ecctao
--  发布时间:6/17/2008 2:56:00 PM

--  
晕死了!
我的站http://www.chipshow.com的PR只有1,
但是http://www.chipshow.com/test/index.html这个页面的PR居然有3!
更奇怪的是,我的这个站没有任何的连接到这个页面!
也就是说这个这个页面是个死的页面!
到底我我的眼睛坏了,还是google的眼睛坏了啊??
--  作者:ecctao
--  发布时间:6/17/2008 2:59:00 PM

--  
难道是所谓的W3C有这么大的威力!
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms