Html 此CSS代码的解释
我需要知道这个代码到底是做什么的。。或者如何使用。实际上我用它来重复图像作为菜单的背景。。我需要解释一下Html 此CSS代码的解释,html,css,Html,Css,我需要知道这个代码到底是做什么的。。或者如何使用。实际上我用它来重复图像作为菜单的背景。。我需要解释一下 url("images/home_bg.jpg") repeat-x scroll 0 0 transparent 它是backgroundCSS属性的简写符号。正是因为这个原因,速记是个坏主意:很难弄清楚什么是什么 长版本如下所示: background-image: url("images/home_bg.jpg"); background-repeat: repeat-x;
url("images/home_bg.jpg") repeat-x scroll 0 0 transparent
它是
background
CSS属性的简写符号。正是因为这个原因,速记是个坏主意:很难弄清楚什么是什么
长版本如下所示:
background-image: url("images/home_bg.jpg");
background-repeat: repeat-x; /* Repeat image horizontally */
background-attachment: scroll; /* Whether image is fixed
or scrolls with page */
background-position: 0 0; /* x position, y position */
background-color: transparent;
它是
后台
CSS属性的简写符号。正是因为这个原因,速记是个坏主意:很难弄清楚什么是什么
长版本如下所示:
background-image: url("images/home_bg.jpg");
background-repeat: repeat-x; /* Repeat image horizontally */
background-attachment: scroll; /* Whether image is fixed
or scrolls with page */
background-position: 0 0; /* x position, y position */
background-color: transparent;
那不是HTML,而是。它的意思是使用给定的图像作为背景,水平而不是垂直重复,从0,0开始,并使其透明(最后一个是指背景颜色,而不是图像)。更多关于W3C网站的信息。这不是HTML,而是。它的意思是使用给定的图像作为背景,水平而不是垂直重复,从0,0开始,并使其透明(最后一个是指背景颜色,而不是图像)。有关W3C网站的更多信息。您可以在以下网站上阅读这些属性以及更多信息 您可以在上阅读这些属性以及更多内容 请用CSS替换标题HTML,并添加CSS标记:)请用CSS替换标题HTML,并添加CSS标记:)