没有属性“背景”。 &安培; " HEIGHT" + + + [英] There is no attribute "BACKGROUND" & "HEIGHT" + + +

查看:61
本文介绍了没有属性“背景”。 &安培; " HEIGHT" + + +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张桌子,我想要一些单元格使用

背景图片。单元格的高度可变,所以

我使用一个高度相当小的图像来填充单元格的背景,这使得我看起来像一个人/>
那里的高图像。


验证时,我收到此错误:

没有属性BACKGROUND


验证人还告诉我没有高度或者

" TOPMARGIN"属性。他们去哪儿了?并且

现在要用什么?


< grumble>为什么在地球上他们必须删除

的东西: :I ::用来使事情变得美观整洁吗?< / grumble>


然后有ALT和ALT。属性....我是否真的有

来使用:: all :: my images?


嗯,是时候把它称为晚上了........


-

Torbj?Petteren

编辑/网站管理员

FantaFiction

www.fantafiction.com

I''ve got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells, thus making I look like one
high image in there.

When validating it, I get this error:
there is no attribute "BACKGROUND"

The validators also tell me there are no "HEIGHT" or
"TOPMARGIN" attributes. Where did they go? And
what to use now?

<grumble>Why on Earth do they have to remove the
stuff that ::I:: use to make things nice and tidy?</grumble>

And then there is the "ALT" attribute.... Do I really have
to use that on ::all:: my images?

Well, time to call it an evening anyway........

--
Torbj?rn Pettersen
Editor/Webmaster
FantaFiction

www.fantafiction.com

推荐答案

Torbj?Petteren写道:
Torbj?rn Pettersen wrote:
我有一张桌子,我想要一些细胞使用
背景图片。细胞的高度可变,所以
我使用的是一个高度相当小的图像来填充细胞的背景,从而使我看起来像是一张高的图像。验证它时,我收到了这个错误:
没有属性BACKGROUND

验证器也告诉我没有HEIGHT。或者
TOPMARGIN属性。他们去哪儿了?并且现在要用什么?


CSS:


< style type =" text / css">

table {

margin-top:10px;

}

td {

background-image:url(image.gif) ;

background-repeat:repeat-y;

身高:30%;

}

< /风格>

< / head>

http://www.w3.org/TR/REC-CSS2/colors...und-properties

< grumble>为什么在地球上他们必须删除那些:: I ::用来使事情变得美观和整洁的东西?< / grumble>


使用CSS(特别是在单独的样式表中)只会

使事情更整洁更好:-)

然后有ALT属性....我真的有
在:: all :: my images上使用它吗?


alt =""如果图像真的不需要描述

(想到这里的装饰GIF)

那么,无论如何,时间称它为晚上....... 。
I''ve got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells, thus making I look like one
high image in there.

When validating it, I get this error:
there is no attribute "BACKGROUND"

The validators also tell me there are no "HEIGHT" or
"TOPMARGIN" attributes. Where did they go? And
what to use now?
CSS:

<style type="text/css">
table{
margin-top: 10px;
}
td{
background-image:url(image.gif);
background-repeat:repeat-y;
height:30%;
}
</style>
</head>

http://www.w3.org/TR/REC-CSS2/colors...und-properties
<grumble>Why on Earth do they have to remove the
stuff that ::I:: use to make things nice and tidy?</grumble>
Using CSS (especially in seperate stylesheets) will only
make things tidier and nicer :-)
And then there is the "ALT" attribute.... Do I really have
to use that on ::all:: my images?
alt="" if the image really doesn''t need a description
(thinking of decorative gifs here)
Well, time to call it an evening anyway........




我所在的地球同一侧:-)


-

Els


Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Same side of the planet as where I am :-)

--
Els

Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


Torbj?姓Pettersen写道:
Torbj?rn Pettersen wrote:
我有一张桌子,我想要一些单元格来使用
背景图片。细胞的高度可变,所以
我使用的是一个高度相当小的图像来填充细胞的背景,从而使我看起来像是一张高的图像。验证它时,我收到了这个错误:
没有属性BACKGROUND

验证器也告诉我没有HEIGHT。或者
TOPMARGIN属性。他们去哪儿了?并且现在要用什么?


CSS:


< style type =" text / css">

table {

margin-top:10px;

}

td {

background-image:url(image.gif) ;

background-repeat:repeat-y;

身高:30%;

}

< /风格>

< / head>

http://www.w3.org/TR/REC-CSS2/colors...und-properties

< grumble>为什么在地球上他们必须删除那些:: I ::用来使事情变得美观和整洁的东西?< / grumble>


使用CSS(特别是在单独的样式表中)只会

使事情更整洁更好:-)

然后有ALT属性....我真的有
在:: all :: my images上使用它吗?


alt =""如果图像真的不需要描述

(想到这里的装饰GIF)

那么,无论如何,时间称它为晚上....... 。
I''ve got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells, thus making I look like one
high image in there.

When validating it, I get this error:
there is no attribute "BACKGROUND"

The validators also tell me there are no "HEIGHT" or
"TOPMARGIN" attributes. Where did they go? And
what to use now?
CSS:

<style type="text/css">
table{
margin-top: 10px;
}
td{
background-image:url(image.gif);
background-repeat:repeat-y;
height:30%;
}
</style>
</head>

http://www.w3.org/TR/REC-CSS2/colors...und-properties
<grumble>Why on Earth do they have to remove the
stuff that ::I:: use to make things nice and tidy?</grumble>
Using CSS (especially in seperate stylesheets) will only
make things tidier and nicer :-)
And then there is the "ALT" attribute.... Do I really have
to use that on ::all:: my images?
alt="" if the image really doesn''t need a description
(thinking of decorative gifs here)
Well, time to call it an evening anyway........




我所在的地球同一侧:-)


-

Els


Sonhos vem。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -



Same side of the planet as where I am :-)

--
Els

Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -


Torbj?姓Pettersen写道:
Torbj?rn Pettersen wrote:
我有一张桌子,我想要一些单元格来使用
背景图片。细胞的高度可变,所以
我使用的是一个高度相当小的图像来填充细胞的背景,从而使我看起来像是一张高的图像。 br />

这里太具体而复杂了。没有人可以实际理解你的网页的特殊性。这里的网址最好。

验证时,我收到此错误:
没有属性BACKGROUND

验证器也告诉我有没有高度或者
TOPMARGIN属性。他们去哪儿了?并且现在要使用什么?

< grumble>为什么在地球上他们必须删除那些:: I ::用来使事情变得整洁和干净的东西? < / grumble>

Topmargin,marginheight,leftmargin,marginwidth,背景从来没有

HTMl 4规范的一部分和HTML 4 TR于1999年发布。

然后就是ALT。属性....我真的有
在:: all :: my images上使用它吗?


适用于文本浏览器,盲文浏览器。请记住,有些人

禁用图像以加快下载速度。 MSIE 6,Netscape 7.1,Mozilla

1.x和大多数浏览器允许用户禁用图像下载。

无论如何,有时候特定图像的下载没有完成或<实现了:
:编辑图像的替代文字非常有用。


DU

好吧,是时候把它称为晚上了... ......
I''ve got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells, thus making I look like one
high image in there.

This is too specific and complex here. There is no way someone could
actually understand the specificity of your web page. An url is best here.
When validating it, I get this error:
there is no attribute "BACKGROUND"

The validators also tell me there are no "HEIGHT" or
"TOPMARGIN" attributes. Where did they go? And
what to use now?

<grumble>Why on Earth do they have to remove the
stuff that ::I:: use to make things nice and tidy?</grumble>

Topmargin, marginheight, leftmargin, marginwidth, background were never
part of the HTMl 4 specification and HTML 4 TR was released in 1999.
And then there is the "ALT" attribute.... Do I really have
to use that on ::all:: my images?
Yes for text browsers, braille browsers. Remember that some people
disable images to make download faster. MSIE 6, Netscape 7.1, Mozilla
1.x and most browsers allow users to disable download of images.
Anyway, sometimes the download of particular images is not completed or
achieved: editing the alternate text for images is useful.

DU

Well, time to call it an evening anyway........



这篇关于没有属性“背景”。 &安培; &QUOT; HEIGHT&QUOT; + + +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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