简体   繁体   English

mootools和iframem,在右上角显示div

[英]mootools and iframem, show div at top right corner

I have iframe popup for image, and close button within that iframe. 我有用于图像的iframe弹出窗口,以及该iframe中的关闭按钮。 I want that close button at top corner of iframe with some portion outside of iframe. 我想要iframe顶部角落的关闭按钮,而iframe之外的部分内容。 How can I apply it? 我该如何申请?

Create CSS Class for that and apply it on input button as bellow. 为此创建CSS类,然后将其应用于input button

<input type="image" id="DemoID" class="closeBut" src="../App_Themes/NewTheme/facebox/GrayClose.png" style="border-width:0px;">

CSS Class as bellow 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM