开发者

SuperSleight is scaling my background image

开发者 https://www.devze.com 2023-03-29 05:47 出处:网络
O开发者_StackOverflow社区K I\'m using SuperSleight to fix the background transparencies on the png images in ie6. It all works as it should except it is scaling my background image to 100% height.

O开发者_StackOverflow社区K I'm using SuperSleight to fix the background transparencies on the png images in ie6. It all works as it should except it is scaling my background image to 100% height. I have the following set to 100% because I want my footer to stay at the bottom. It seems like this is affecting SuperSleight and is causing my background image to scale. For most people simply changing the background image format would work but Ive worked a fair amount trying to remove gradient rings and using a png came out with the best result. Does anyone know a fix for this?

body, html {
    height: 100%;
    min-height:100%;
}
body{
    background-image:url(../images/content_bg6.png);
    background-color:#3e2f24;
    background-repeat:repeat-x;
}


I worked around the problem by creating a div wrapper for all the content within the body tag initialized supersleight to that specific wrapper and its children avoiding the body tag.

    $(document).ready(function(){
   $('#pageWrapper').supersleight();
});

The above is a work around.

0

精彩评论

暂无评论...
验证码 换一张
取 消