简单验证Questins [英] Simple Validation Questins

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

问题描述

我对此完全陌生。我手工编写了我的第一个网站。它很漂亮

基本。我在w3.org上找到了CSS的验证器,这就是我得到的结果。


警告


* Line:2 font-family:我们鼓励你提供一个通用的家庭作为

a最后一个替代

*行:2(等级:2)font-family:你我们鼓励提供一个

仿制家庭作为最后一种选择:身体

*行:10(等级:1)你的颜色没有背景颜色:

a:链接

*行:14(等级:1)你的颜色没有背景颜色:

a:访问

*行:37(等级:1)你的颜色没有背景颜色:

..mail

*行:41 font-family:你鼓励提供一个通用的家庭

作为最后的选择

*行:41(等级:2)font-family:我们鼓励你提供一个

仿制家庭作为最后一种选择:#divnav

*行:43(等级:1)你的颜色没有背景颜色:

#divnav


这是行的CSS:2


body {background-color:# A5A5A5;

font-family:verdana,arial,helvetica,sans serif;

font-size:8pt;

颜色: #000000;

text-align:center;}

我认为3generic family2是serif或sans serif。我不明白

他们的意思。

我也不知道(等级:2)是什么。


这是CSS的链接和a:访问


a:链接

{颜色:#000000;

text-decoration:none ;}


a:访问

{颜色:#000000;

text-decoration:none;}


我每次使用颜色时都需要背景颜色吗?


我希望我明白这一点。我确定所有这些都是非常基本但我只是

无法找到答案。我能够解决其他一些错误并且

整天都在阅读。我当然可以使用一些帮助。


我还没有发布我的网站。我试图清理东西。到目前为止,只有

有一些错误。还有一件事没有用,但是如果我不知道的话,我会把它留给另一个帖子。


谢谢,琳达

-

删除无效回复

I am completely new to this. I hand-coded my first site. It1s pretty
basic. I found the validator for CSS on w3.org and this is the result I
got.

Warnings

* Line : 2 font-family: You are encouraged to offer a generic family as
a last alternative
* Line : 2 (Level : 2) font-family: You are encouraged to offer a
generic family as a last alternative : body
* Line : 10 (Level : 1) You have no background-color with your color :
a:link
* Line : 14 (Level : 1) You have no background-color with your color :
a:visited
* Line : 37 (Level : 1) You have no background-color with your color :
..mail
* Line : 41 font-family: You are encouraged to offer a generic family
as a last alternative
* Line : 41 (Level : 2) font-family: You are encouraged to offer a
generic family as a last alternative : #divnav
* Line : 43 (Level : 1) You have no background-color with your color :
#divnav

This is the CSS for line : 2

body {background-color: #A5A5A5;
font-family: verdana, arial, helvetica, "sans serif";
font-size: 8pt;
color: #000000;
text-align: center;}

I thought 3generic family2 was serif or sans serif. I don1t understand
what they mean.
I also don1t know what (Level: 2) is.

This is the CSS for a:link and a:visited

a:link
{color: #000000;
text-decoration: none;}

a:visited
{color: #000000;
text-decoration: none;}

Do I need a background-color every time I use a color?

I hope I1ve made this clear. I1m sure all this is very basic but I just
can1t find the answers. I was able to fix a couple other mistakes and
have been reading all day. I sure could use some help.

I haven1t published my site yet. I1m trying to clean things up. Only
have a few mistakes so far. One other thing that doesn1t work but I1ll
leave that to another post if I can1t figure it out.

Thanks, Linda

--
remove invalid to reply

推荐答案

linda< lr ****** @ invalidnc.rr.com>写道:
linda <lr******@invalidnc.rr.com> wrote:
* Line:2 font-family:我们鼓励你提供一个通用的家庭作为最后一个选择
[...]
body {background -color:#A5A5A5;
font-family:verdana,arial,helvetica," sans serif";
font-size:8pt;
color:#000000;
text -align:center;}

我认为3generic family2是serif或sans serif。我不明白
他们的意思。


" sans serif"是一种名为sans serif的字体。


sans-serif是一种没有衬线的通用字体。


另外,你可以考虑避免Verdana:
http://www.xs4all.nl /~sbpoley/webmatters/verdana.html

我也不知道(等级:2)是什么。


它表示警告的重要性。

*行:10(等级:1)你的颜色没有背景颜色:
a:链接
[...]
a:链接
{color:#000000;
text-decoration:none;}
[ ...]

我每次使用颜色时都需要背景颜色吗?
* Line : 2 font-family: You are encouraged to offer a generic family as
a last alternative
[...]
body {background-color: #A5A5A5;
font-family: verdana, arial, helvetica, "sans serif";
font-size: 8pt;
color: #000000;
text-align: center;}

I thought 3generic family2 was serif or sans serif. I don1t understand
what they mean.
"sans serif" is a font named "sans serif".

sans-serif is a generic font without serifs.

Also, you might consider avoiding Verdana:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
I also don1t know what (Level: 2) is.
It indicates how important the warning is.
* Line : 10 (Level : 1) You have no background-color with your color :
a:link
[...]

a:link
{color: #000000;
text-decoration: none;}
[...]

Do I need a background-color every time I use a color?




是的。否则你的颜色可以用来对付用户的默认颜色,

并且可能没有足够的对比度使其清晰可辨。


另外,你应该使用背景而不是背景颜色,

因为背景也会覆盖用户默认配置可能使用的任何背景图像。

-

Darin McGrew, mc****@stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da***@htmlhelp.com http://www.HTMLHelp.com/

我很想抽出时间,如果只是我可以找到食谱。



Yes. Otherwise your color could be used against the user''s default color,
and there may be insufficient contrast for it to be legible.

Also, you should probably use background rather than background-color,
because background also overrides any background-image the user''s default
configuration might use.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"I''d love to make time, if only I could find the recipe."


linda写道:
linda wrote:
body {background-color:#A5A5A5;
font-family:verd ana,arial,helvetica,sans serif;
font-size:8pt;
body {background-color: #A5A5A5;
font-family: verdana, arial, helvetica, "sans serif";
font-size: 8pt;




您还希望避免使用此8pt字体大小。 Flyspecks。如果你按照达林的建议放弃

非常大的Verdana,你会看到这一点。此外,pt

(点)适用于印刷媒体。使用:font-size:100%;然后我们将全部

获得我们的默认尺寸。


-

-bts

- 当摩托车,从不跟随猪车



You also want to avoid this 8pt font size. Flyspecks. If you drop the
very large Verdana as Darin recommends, you will see this. Besides, pt
(point) is for print media. Use: font-size: 100%; then we will all
get our default size.

--
-bts
-When motorcycling, never follow a pig truck


在文章< di ********** @ blue.rahul.net>,Darin McGrew

< mc **** @ stanfordalumni.org>写道:
In article <di**********@blue.rahul.net>, Darin McGrew
<mc****@stanfordalumni.org> wrote:
linda< lr ****** @ invalidnc.rr.com>写道:
linda <lr******@invalidnc.rr.com> wrote:
* Line:2 font-family:我们鼓励你提供一个通用的家庭作为最后一个选择
[...]
body {background -color:#A5A5A5;
font-family:verdana,arial,helvetica," sans serif";
font-size:8pt;
color:#000000;
text -align:center;}

我认为3generic family2是serif或sans serif。我不明白
他们的意思。
sans serif是一种名为sans serif的字体。

sans-serif是一种没有衬线的通用字体。
* Line : 2 font-family: You are encouraged to offer a generic family as
a last alternative
[...]
body {background-color: #A5A5A5;
font-family: verdana, arial, helvetica, "sans serif";
font-size: 8pt;
color: #000000;
text-align: center;}

I thought 3generic family2 was serif or sans serif. I don1t understand
what they mean.
"sans serif" is a font named "sans serif".

sans-serif is a generic font without serifs.




这就是我的意思思想。那么为什么我被鼓励提供一个通用的

家庭作为最后的选择呢?我错过了什么。


这是我的新CSS:font-family:arial,helvetica,sans serif;

另外,你可考虑避免使用Verdana:
http:// www。 xs4all.nl/~sbpoley/webmatters/verdana.html

感谢您的链接。 Verdana已经消失了。而且我很难抓住%b / b由于某种原因突然间它点击了我在阅读那篇文章的时候。将我的所有字体大小更改为%



That''s what I thought. So why am I being "encouraged to offer a generic
family as a last alternative? I''m missing something.

this is my new CSS: font-family: arial, helvetica, "sans serif";

Also, you might consider avoiding Verdana:
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
Thanks for the link. The Verdana''s gone. And I was having a hard time
grasping % and for some reason all of a sudden it clicked while I was
reading that article. Changed all my font sizes to %

我也不知道(级别:2)是什么。
I also don1t know what (Level: 2) is.



它表示警告的重要性。



It indicates how important the warning is.

*行:10(等级:1)你的颜色没有背景颜色:
a:link
[...]

a:链接
{color:#000000;
text-decoration:none;}
[...]

我需要背景颜色吗我每次使用一种颜色?
* Line : 10 (Level : 1) You have no background-color with your color :
a:link
[...]

a:link
{color: #000000;
text-decoration: none;}
[...]

Do I need a background-color every time I use a color?



是的。否则你的颜色可以用来对付用户的默认颜色,
并且可能没有足够的对比度使其清晰可读。

此外,你应该使用背景而不是背景 - 颜色,
因为背景也会覆盖用户默认
配置可能使用的任何背景图像。



Yes. Otherwise your color could be used against the user''s default color,
and there may be insufficient contrast for it to be legible.

Also, you should probably use background rather than background-color,
because background also overrides any background-image the user''s default
configuration might use.




还添加了所有背景建议的地方。谢谢你的

解释。它非常有意义。


我的CSS现在验证除了通用家族作为最后一种选择之外


感谢您的帮助。非常感激。现在,如果我可以修复

泛型家庭用品。


Linda


-

删除无效回复



Also added background in all the places suggested. Thanks for your
explanation. It makes so much sense.

My CSS now validates except the "generic family as a last alternative"

Thanks for all your help. Much appreciated. Now if I can just fix the
generic family thing.

Linda

--
remove invalid to reply


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

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