图片定位一个地方
2018-01-05 14:36
134 查看
<style type="text/css">
html,body{
height:100%;}
#box {
width:100%;
height:100%;}
.one{
width:100%;
height:100%;
background:url(images/02.png) no-repeat top center fixed;
background-size:contain;
}
.two{
width:100%;
height:100%;
background:url(images/drinkzeo.png) no-repeat top center fixed;
background-size:contain;}
</style>
</head>
<body>
<div id="box">
<div class="one">1</div>
<div class="two">2</div>
</div>
html,body{
height:100%;}
#box {
width:100%;
height:100%;}
.one{
width:100%;
height:100%;
background:url(images/02.png) no-repeat top center fixed;
background-size:contain;
}
.two{
width:100%;
height:100%;
background:url(images/drinkzeo.png) no-repeat top center fixed;
background-size:contain;}
</style>
</head>
<body>
<div id="box">
<div class="one">1</div>
<div class="two">2</div>
</div>
相关文章推荐
- 把一个字符串里符合表情文字标签的地方全部替换为相应的图片的方法
- 使用 Pitney Bowes 定位服务构建一个简单的图片定位应用程序
- java 将一张图片拷贝到另外一个地方。(IO流)
- iOS一个应用有多个颜色主题时,用到图片的地方如何处理
- 发现了一个好的上传图片的地方
- Box2DFlash如何给一个刚体的皮肤图片定位?
- 关于Drawable资源被用在多个地方显示图片时,改变其中一个实例的状态会同时作用到其他实例的解决方法
- 程序员面试金典——解题总结: 9.12测试 12.2如何定位一个随机位置奔溃的应用
- 谷歌工程师利用和语言翻译类似的技术开发出了一个用于翻译图片主题的机器学习算法
- Android图片加载库—Picasso一个强大的图像下载和缓存库
- div上放置一个固定图片
- 一个图片压缩 免费 api接口
- iOS-比较两张图片内容是否相同,判断一个imageView是否有image
- [笔记]python网络爬虫:一个简单的爬取图片并存储示例
- 阿,作为一个伟大(苦比)的程序猿,怎么能没一个记录感悟(吐槽)的地方呢
- CSS根据字数的多少定位图片的大小方法
- CSS背景图片精确定位
- C# 实现:将一个文件夹下的.png图片全部移动到另一个文件夹
- String的一个容易迷惑的地方
- 上传图片并生成缩略图的一个方法