验证问题 [英] Validation Issues

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

问题描述

当我尝试使用w3c验证器验证我的样式表时,

告诉我需要一个正确的文档解析树。令人困惑的

是我的页面验证为XHTML Transitional 1.0。有没有人知道会导致这种情况发生的原因是什么?这是来自w3c验证器的实际消息




行:0


解析错误 - :

Mahalo为你提供帮助!


- 下来查看

解决方案

< blockquote> 2004年8月23日12:34:59 -0700,downview< do ****** @ gmail.com>写道:

当我尝试使用w3c验证器验证我的样式表时,它告诉我我需要一个正确的文档解析树。令人困惑的事情是我的页面验证为XHTML Transitional 1.0。有没有人知道会导致这种情况发生的原因是什么?这是来自w3c验证器的实际消息:

线路:0

分析错误 - :

Mahalo为你帮助!

- 一个向下看的视图



水晶球在店里。一个URL怎么样?


downview写道:

当我尝试使用w3c验证器验证我的样式表时,它
告诉我,我需要一个正确的文档解析树。


所以你这样做 - 它告诉你你没有吗?

这里是来自w3c验证器的实际信息:




这是一个不同的消息 - 但你并没有提供任何关于

代码触发它的线索。


-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方


David Dorward< do*****@yahoo.com>在消息新闻中写道:< cg ******************* @ news.demon.co.uk> ...

downview写道:

当我尝试使用w3c验证器验证我的样式表时,它告诉我需要一个正确的文档解析树。


<你做了 - 它告诉你你没有吗?

这是来自w3c验证器的实际信息:



这是一个不同的信息 - 但你并没有提供任何关于
代码触发它的线索。



很抱歉这样做暧昧,但这正是消息。


我引用:


要按预期工作,你的CSS样式表需要一个正确的文件

解析树。这意味着你应该使用有效的HTML。


错误


*行:0


Parse错误 - :

______________________________________


此后,我的标记的每一位都会有效。就像我说的那样,我的

索引页面验证为XHTML Transitional 1.0,这给了我

的混乱。我想也许有一个错误,但是这里是你要求思考的CSS

标记:


* body {

o background-image:url(images / side_background.jpg);

o margin:0;

o padding:40px 20px;

o font:x-small Georgia,Serif;

o text-align:center;

o颜色:#333;

o font-size:小;

o字体大小:小;

}

* h2 {

o字体系列:Arial Bold ,sans-serif;

o字体大小:1.3em;

o背景:#c0c0ff;

o颜色:#fff;

o margin:0 0 0 10px;

}

* ul {

o list-style-image:url(images / bullet .gif);

o list-style-position:outside;

}

* {

o font-family :Trebuchet MS,sans-serif;

o颜色:#728da6;

o字体大小:14px;

o text-decoration:none; < br $>
}

* a:link {

o font-family:Trebuchet MS,sans-serif;

o颜色:#728da6;

o字体大小:14px;

o text-decoration :无;

}

* a:已访问{

o font-family:Trebuchet MS,sans-serif;

o颜色:#728da6;

o字体大小:14px;

o text-decoration:none;

}

* a:有效,a:悬停{

o font-family:Trebuchet MS,sans-serif;

o颜色:红色;

o font-size:14px;

o text-decoration:none;

o border-bottom:1px点缀红色;

}

* #header {

o宽度:660px;

o高度:80px;

o margin:0 auto 10px;

o background-image:url(Images / foreli.gif);

o background-position:50%50%;

o background-repeat:no-repeat; < br $>
}

* #content {

o width:730px;

o margin:0 auto;

o padding:10px;

o text-align:left;

o背景:#fff;

}

* #main {

o宽度:510px;

o float:left;

o padding:5px;

o background:#fff;

o border:1px solid#728da6;

}

* #main a {

o font-family:Times New Roman,sans-serif;

o font-size:14px;

o颜色:#728da6;

o text-decoration:none;

o border-bottom:1px点缀#728da6;

}

* #main a:link {

o font-family:Times New Roman,sans-serif;

o font-size: 14px;

o颜色:#728da6;

o text-decoration:none;

o border-bottom:1px点缀#728da6;

}

* #main a:已访问{

o font-family:Times New Roman,sans-serif;

o font-尺寸:14px;

o颜色:#728da6;

o text-decoration:none;

o border-bottom:1px点缀#728da6;

}

* #main a:active,#main a:ho ver {

o font-family:Times New Roman,sans-serif;

o font-size:14px;

o color:red;

o text-decoration:none;

o border-bottom:1px点缀红色;

}

* #sidebar {

o宽度:125px;

o高度:300px;

o float:right;

o padding:5px 0 0;

o background-image:url(Images / dropshadow.gif);

}

* #footer {

o clear :both;

o宽度:250px;

o margin:0 0 0 300px;

o padding:50px;

}

* .body {

o font-family:Times New Roman,sans-serif;

o font-size:14px;

o颜色:黑色;

o text-decoration:none;

}

* .footer {

o font-family:Arial,sans-serif;

o字体大小:9px;

o颜色:灰色;

}

* hr {

o宽度:75%;

}

***感谢repli es和任何帮助***下来视图


When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree. The confusing
thing is my page validates as XHTML Transitional 1.0. Does anyone have
any idea what would cause this to happen? Here''s the actual message
from the w3c validator:

Line: 0

Parse Error - :
Mahalo for you help!

--a down view

解决方案

On 23 Aug 2004 12:34:59 -0700, downview <do******@gmail.com> wrote:

When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree. The confusing
thing is my page validates as XHTML Transitional 1.0. Does anyone have
any idea what would cause this to happen? Here''s the actual message
from the w3c validator:

Line: 0

Parse Error - :
Mahalo for you help!

--a down view


Crystal ball''s in the shop. How about a URL?


downview wrote:

When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree.
And so you do - does it tell you that you don''t have one?
Here''s the actual message from the w3c validator:



That''s a different message - but you aren''t providing any clue as to what
code triggers it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


David Dorward <do*****@yahoo.com> wrote in message news:<cg*******************@news.demon.co.uk>...

downview wrote:

When I attempt to validate my style sheet using the w3c validator, it
tells me that I need a correct document parse tree.



And so you do - does it tell you that you don''t have one?

Here''s the actual message from the w3c validator:



That''s a different message - but you aren''t providing any clue as to what
code triggers it.


Sorry to be so ambiguous, but that''s exactly the message.

And I quote:

To work as intended, your CSS style sheet needs a correct document
parse tree. This means you should use valid HTML.

ERRORS

* Line: 0

Parse Error - :
______________________________________

After this, every bit of my markup validates. Like I said, though, my
index page validates as XHTML Transitional 1.0, which is giving me the
confusion. I''m thinking perhaps there is a bug, but here''s the CSS
markup to ponder as you requested:

* body {
o background-image : url(images/side_background.jpg);
o margin : 0;
o padding : 40px 20px;
o font : x-small Georgia, Serif;
o text-align : center;
o color : #333;
o font-size : small;
o font-size : small;
}
* h2 {
o font-family : Arial Bold, sans-serif;
o font-size : 1.3em;
o background : #c0c0ff;
o color : #fff;
o margin : 0 0 0 10px;
}
* ul {
o list-style-image : url(images/bullet.gif);
o list-style-position : outside;
}
* {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:link {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:visited {
o font-family : Trebuchet MS, sans-serif;
o color : #728da6;
o font-size : 14px;
o text-decoration : none;
}
* a:active , a:hover {
o font-family : Trebuchet MS, sans-serif;
o color : red;
o font-size : 14px;
o text-decoration : none;
o border-bottom : 1px dotted red;
}
* #header {
o width : 660px;
o height : 80px;
o margin : 0 auto 10px;
o background-image : url(Images/foreli.gif);
o background-position : 50% 50%;
o background-repeat : no-repeat;
}
* #content {
o width : 730px;
o margin : 0 auto;
o padding : 10px;
o text-align : left;
o background : #fff;
}
* #main {
o width : 510px;
o float : left;
o padding : 5px;
o background : #fff;
o border : 1px solid #728da6;
}
* #main a {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:link {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:visited {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : #728da6;
o text-decoration : none;
o border-bottom : 1px dotted #728da6;
}
* #main a:active , #main a:hover {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : red;
o text-decoration : none;
o border-bottom : 1px dotted red;
}
* #sidebar {
o width : 125px;
o height : 300px;
o float : right;
o padding : 5px 0 0;
o background-image : url(Images/dropshadow.gif);
}
* #footer {
o clear : both;
o width : 250px;
o margin : 0 0 0 300px;
o padding : 50px;
}
* .body {
o font-family : Times New Roman, sans-serif;
o font-size : 14px;
o color : black;
o text-decoration : none;
}
* .footer {
o font-family : Arial, sans-serif;
o font-size : 9px;
o color : gray;
}
* hr {
o width : 75%;
}
*** Thanks for the replies and any help *** down view


这篇关于验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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