大图像上的小图像
Small image on top of larger image
本文关键字:图像 更新时间:2024-01-27
我正在尝试将灰色小框放在页面上黑框前面的左上角。图像顶部的图像。我希望灰色的盒子在黑色的盒子上面是可见的。我将顶部和左侧设置为零,并尝试z索引将灰色图像移动到黑色正方形上方,但没有。它需要兼容IE9:
https://jsfiddle.net/Lance_Bitner/zrjttnu1/
.nav-toggle {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-decoration: none;
text-indent: -999px;
position: relative;
overflow: hidden;
width: 70px;
height: 55px;
float: left;
display: block;
margin: 0 -2em 1em 0;
}
.nav-toggle:before {
color: #444; /* Edit this to change the icon color */
font-family: "responsivenav";
font-style: normal;
font-weight: normal;
font-variant: normal;
font-size: 28px;
text-transform: none;
position: absolute;
content: url(img/menu2.gif);
text-indent: 0;
text-align: center;
line-height: 65px;
speak: none;
width: 100%;
top: 0;
left: 0;
}
.nav-toggle.active:before {
font-size: 24px;
content: url(img/menu3.gif);
}
您可以将导航切换框定位为绝对并设置为顶部:0;
.nav-toggle {
...
position: absolute;
top: 0;
}
https://jsfiddle.net/Lpyumsck/1/
相关文章:
- 如何使用url加载程序在webpack中导入多个图像
- nodejs-expressjs上传图像并显示它们
- 使用JSP从服务器检索和显示图像
- 角度:在ng重复上切换图像
- 画廊图像未显示
- Phonegap-(安卓/iphone)多个图像的图像库出现问题
- Javascript排序的图像弹出窗口..可以't单独弹出
- 画布数据到图像
- Windows8应用程序(html&Javascript):从图片库(除了文件选择器)显示图像的另一种方式
- 使图像在单击时展开到不大于浏览器
- Html页面上的多个Base64图像和平滑加载
- UIAutomation放大图像
- 使用javascript在Flash中加载外部图像
- 可以在这里为背景图像设置滤镜吗
- 当图像转换为本地存储的DataURL时,EXIF被删除
- 使用 js 将背景图像设置为 HTML
- Javascript将图像src更改为淡入淡出
- 无法在本地计算机中将画布另存为图像
- 压缩phonegap中ios的图像插件
- 如何在鼠标悬停时在另一个图像上滑动图像.