Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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
Php 如何使用css拉伸背景图像_Php_Html_Css_Background_Html Helper - Fatal编程技术网

Php 如何使用css拉伸背景图像

Php 如何使用css拉伸背景图像,php,html,css,background,html-helper,Php,Html,Css,Background,Html Helper,我尝试了一切,我使用了背景位置:100%;等等 a.textlink:link { color: #8E7086; font: bold 11pt Arial, Verdana, Helvetica, sans-serif; text-decoration: none; padding-right: 10px; } a.textlink:visited { color: #8E7086; font: bold 11pt Arial, Verdana, Helvet

我尝试了一切,我使用了背景位置:100%;等等

        a.textlink:link { color: #8E7086; font: bold 11pt Arial, Verdana, Helvetica, sans-serif; text-decoration: none; padding-right: 10px; }
        a.textlink:visited { color: #8E7086; font: bold 11pt Arial, Verdana, Helvetica, sans-serif; text-decoration: none; }
        a.textlink:hover { color: #756C63; font: bold 11pt Arial, Verdana, Helvetica, sans-serif; text-decoration: none; }
        a.textlink:active { color: #8E7086; font: bold 11pt Arial, Verdana, Helvetica, sans-serif; text-decoration: none; }
        body { 
            font-family: Verdana,Arial,Helvetica,sans-serif; 
            background-color: #FFF;
            text-align: center;
                            background-image: url(images/Template/radeberger_wrapper.jpg);
                            background-repeat: no-repeat;
                            background-position: 100%;

使用:

第一个将始终覆盖整个元素,但是是css3(仅限现代浏览器)。 第二个将始终具有全宽,保持纵横比。

使用:

第一个将始终覆盖整个元素,但是是css3(仅限现代浏览器)。 第二个将始终具有全宽,保持纵横比。

您应该看看这个,它有很多关于同一问题的讨论

    background-size: 100% auto;
阅读这里

你应该看看这个,它有很多关于同一问题的讨论

    background-size: 100% auto;
阅读这里

这里有一个好资源:这里有一个好资源:
    background-size: 100% auto;