doutan2228
doutan2228
2012-09-27 13:54

如何在div中设置不同屏幕分辨率的背景图像?

  • css
  • php

I am developing a webpage in which I am setting background with help of div but my problem is that when the resolution of screen changes the image does not fit properly , it shows blank space on both side of screens on large screens. Is there a way with which I can make a standard case which shall run for all screens .

This is how I am setting my div

mheaderimgs {
width:1007px;
margin:auto auto;
height:auto;
}
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答