@media only screen and (min-width: 1024px) //当分辨率width >= 1024px 时使用1.jpg作为背景图片
{
.bg{
background:url(./images/1.jpg) no-repeat;
}
}
@media only screen and (min-width: 400px) and (max-width: 1024px) //当分辨率400px
{
.bg{
background:url(./images/2.jpg) no-repeat;
}
}
@media only screen and (mmax-width: 400px) //当分辨率width =
{
.bg{
background:url(./images/3.jpg) no-repeat;
}
}
关于设置UITableView的背景图片
在UITableViewController中,要设置UITableView的背景图片,以前常用的方法是使用backgroundcolor属性,这个属性可以通过UIImage来获取,但最近发现这个方法 ...
WPF 后台C#设置控件背景图片
原文:WPF 后台C#设置控件背景图片 以前的程序中有做过,当时只是记得uri很长一大段就没怎么记.今天有人问了也就写下来. 这是一个Button,设置了Background后的效果. 前台的设置 ...
设置UINavigation的背景图片和背景颜色
//通过背景图片来设置背景 float s