简体   繁体   中英

mootools and iframem, show div at top right corner

I have iframe popup for image, and close button within that iframe. I want that close button at top corner of iframe with some portion outside of iframe. How can I apply it?

Create CSS Class for that and apply it on input button as bellow.

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

CSS Class as bellow

.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;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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