如何将不同的格式或样式应用于弹出窗口 [英] how to apply different format or style to popup window

查看:118
本文介绍了如何将不同的格式或样式应用于弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以一种简单的格式显示一个弹出窗口.我想应用打开窗口的其他格式.我如何应用格式或样式,以便在弹出窗口打开时看起来很好?以下是我的源代码:

I display a popup window in a simple format. I want to apply different format of opening popup a window. How can I apply format or style so that it looks very good when pop window opens? The following is my source code:

<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


css

<style type="text/css">

#showhealing, #innovations, #div3

{

visibility: hidden;
}</style>


javascript


javascript

<script language="JavaScript">

function show(id)

{

document.getElementById(id).style.visibility = "visible";

}

</script>

推荐答案

您应该使用CSS.在此处开始 [ ^ ]有关如何使用CSS和教程的一些示例.
You should use CSS. Start here[^]for some examples of how to use CSS and a tutorial.


这篇关于如何将不同的格式或样式应用于弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆