Css 无效的属性值

Css 无效的属性值,css,background,Css,Background,我试图将元素的CSS设置为:url('example.png')center 100%100%no repeat 但我有一个错误:无效的属性值 定义应该正确,因为背景属性值应该如下所示:background:color position size repeat 我不知道,我做错了什么。试试看 background: url('example.png') center center / 100% 100% no-repeat; 注意斜杠试试看 background: url('example.p

我试图将元素的CSS设置为:
url('example.png')center 100%100%no repeat

但我有一个错误:无效的属性值

定义应该正确,因为背景属性值应该如下所示:
background:color position size repeat

我不知道,我做错了什么。

试试看

background: url('example.png') center center / 100% 100% no-repeat;
注意斜杠

试试看

background: url('example.png') center center / 100% 100% no-repeat;
注意斜杠

试试看

background: url('example.png') center center / 100% 100% no-repeat;
注意斜杠

试试看

background: url('example.png') center center / 100% 100% no-repeat;

请注意,斜线的位置已使用“中心”定义。使用100%100%就像再次定义一个位置。尝试100%删除100%并检查。
语法是:url repeat/no repeat scroll/no scroll rightposition topposition color

Thr位置已使用中心定义。使用100%100%就像再次定义一个位置。尝试100%删除100%并检查。
语法是:url repeat/no repeat scroll/no scroll rightposition topposition color

Thr位置已使用中心定义。使用100%100%就像再次定义一个位置。尝试100%删除100%并检查。
语法是:url repeat/no repeat scroll/no scroll rightposition topposition color

Thr位置已使用中心定义。使用100%100%就像再次定义一个位置。尝试100%删除100%并检查。
语法为:url repeat/no repeat scroll/no scroll rightposition top position color

“请参阅背景大小。此属性必须在背景位置后指定,并用“/”字符分隔。”:“请参阅背景大小。此属性必须在背景位置后指定,并用“/”字符分隔。”:“请参阅背景大小。必须在背景位置后指定此属性,并用“/”字符分隔。“:”请参阅背景大小。必须在背景位置后指定此属性,并用“/”字符分隔。“: