我以简单的格式显示一个弹出窗口。我想应用不同的打开弹出窗口的格式。如何应用格式或样式以使其在弹出窗口打开时看起来非常好?以下是我的源代码:
HTML:
<div onMouseOver="show('healing')" onMouseOut="hide('healing')">
<div id="healing" class="bgdiv" >
<div id ="title" class="Title"> Healing</div>
<img class="img" src="images/healing.bmp">
<div class="description" >Welcome Sir.</div>
</div>
</div>
CSS:
#showhealing, #innovations, #div3 {
visibility: hidden;
}
JavaScript:
function show(id) {
document.getElementById(id).style.visibility = "visible";
}