Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 只需将1个图像放在顶部,第二个图像将放在底部_Html_Css - Fatal编程技术网

Html 只需将1个图像放在顶部,第二个图像将放在底部

Html 只需将1个图像放在顶部,第二个图像将放在底部,html,css,Html,Css,我只需要把1个图像放在顶部,第二个图像放在背景的底部,这可能吗?请帮我做这个谢谢 html { background:url(../images/try.jpg) repeat-y top center; width:100%; height:100%;} body { font: 100% Verdana, Arial, Helvetica, sans-serif; background:url(../images/try2.jpg) no-repeat bottom cen

我只需要把1个图像放在顶部,第二个图像放在背景的底部,这可能吗?请帮我做这个谢谢

html { background:url(../images/try.jpg) repeat-y top center; width:100%; height:100%;}

body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background:url(../images/try2.jpg) no-repeat bottom center;
    margin: 0;
    padding: 0;
    text-align: center; 
    color: #000000;
    height:100%;

}
CSS 3

body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: url(../images/try2.jpg) no-repeat bottom center,
                url(../images/try2.jpg) no-repeat bottom center;
    margin: 0;
    padding: 0;
    text-align: center; 
    color: #000000;
    height:100%;

}
但要实现跨浏览器,上面是treefrog的解决方案;)

css3

body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: url(../images/try2.jpg) no-repeat bottom center,
                url(../images/try2.jpg) no-repeat bottom center;
    margin: 0;
    padding: 0;
    text-align: center; 
    color: #000000;
    height:100%;

}
但要实现跨浏览器,上面是treefrog的解决方案;)