Home > Web Front-end > HTML Tutorial > [css]全屏背景图片设置,django加载图片路径

[css]全屏背景图片设置,django加载图片路径

WBOY
Release: 2016-06-02 09:13:36
Original
1883 people have browsed it
<span style="color: #800000;"><br><style type="text/css">
    #bg </style></span>{<span style="color: #ff0000;">
        position</span>:<span style="color: #0000ff;">fixed</span>;<span style="color: #ff0000;"> 
        top</span>:<span style="color: #0000ff;">0</span>;<span style="color: #ff0000;"> 
        left</span>:<span style="color: #0000ff;">0</span>;<span style="color: #ff0000;"> 
        width</span>:<span style="color: #0000ff;">100%</span>;<span style="color: #ff0000;"> 
        height</span>:<span style="color: #0000ff;">100%</span>;
    }<span style="color: #800000;">

    #bg img </span>{<span style="color: #ff0000;">
        position</span>:<span style="color: #0000ff;">absolute</span>;<span style="color: #ff0000;"> 
        left</span>:<span style="color: #0000ff;">0</span>;<span style="color: #ff0000;"> 
        right</span>:<span style="color: #0000ff;">0</span>;<span style="color: #ff0000;"> 
        bottom</span>:<span style="color: #0000ff;">0</span>;<span style="color: #ff0000;"> 
        margin</span>:<span style="color: #0000ff;">auto</span>;<span style="color: #ff0000;"> 
        width</span>:<span style="color: #0000ff;">100%</span>;<span style="color: #ff0000;">
        height</span>:<span style="color: #0000ff;">100%</span>;<span style="color: #ff0000;">
        z-index</span>:<span style="color: #0000ff;">-1</span>;
    }<span style="color: #800000;">
    


    <div class="container">
      <div id="bg">
        <img  src="</span>%7B<span%20  style="max-width:90%"[css]全屏背景图片设置,django加载图片路径" >% static 'img/login.jpg' %}<span style="color: #800000;">" alt="">
      </span>
</div>
      <div>      
                    添加内容,该内容不会被遮挡,分割  
       </div>
<br>
</div>
<p> </p></span>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template