[英]mootools and iframem, show div at top right corner
我有用于图像的iframe弹出窗口,以及该iframe中的关闭按钮。 我想要iframe顶部角落的关闭按钮,而iframe之外的部分内容。 我该如何申请?
为此创建CSS类,然后将其应用于input button
。
<input type="image" id="DemoID" class="closeBut" src="../App_Themes/NewTheme/facebox/GrayClose.png" style="border-width:0px;">
CSS类如下
.closeBut{
font-size: 12px;
color: #777;
position: absolute;
display: block;
top: -8px;
right: -8px;
width: 20px;
height: 20px;
text-indent: -9999em;
background: url(../App_Themes/NewTheme/facebox/GrayClose.png) no-repeat;
outline: 0;
z-index: 1000;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.