<body class="easyui-layout"   scroll="no" onload="get()" style="background-repeat: no-repeat; background-position: 100% 100%; background-image: url(<%= request.getContextPath() %>/images/all2.jpg)">  如何让我的body背景图片自动适应浏览器html jsp

解决方案 »

  1.   

    这样写试试看:<html>
        <head>
            <style type="text/css">
                html {
                    height:100%;
                }
                
                body {
                    background:#FFF url('<%= request.getContextPath() %>/images/all2.jpg') repeat-y center top;
                    min-heigth:min-height:100%;
                    height:auto !important;
                    height:100%;
                } 
            </style>
        </head>
        <body class="easyui-layout" scroll="no" onload="get()">
    </html>