1

I have one base64 encoded png image.

I wrote following code to strech to full screen

[CSS]
background: url(data:image/png;base64,/*---Image base64 code--*/)no-repeat center center fixed;
-webkit-background-size: cover;
   -o-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;

but didn't works. How can i achive this.

4

1 回答 1

0

你在身体上使用它吗?如果是,它将如下所示。

jsfiddle:http: //jsfiddle.net/UVkjT/

body
{
background-image: url(data:image/png;base64,/*---Image base64 code--*/) no-repeat center center fixed;
-webkit-background-size: cover;
   -o-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}
于 2013-05-15T04:07:20.170 回答