你再也不需要因为屏幕大小不同而去选择多张图片作为背景图了,css3教你做人;

body
{
    background: url('xx.jpg')top center no-repeat; 
    background-size:cover;
}

 

 

或者

body
{
    background:url('back.jpg');
    background-attachment:fixed;
    background-repeat:no-repeat;
    background-size:cover;
    -moz-background-size:cover;
    -webkit-background-size:cover;
}

相关文章:

  • 2021-06-06
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-08-30
猜你喜欢
  • 2021-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案