---
title: "在页面中模拟Modal对话框"
author: "didasoft"
date: "2006-03-03T15:52:00Z"
tags: ["Google", "HTML"]
slug: "modal"
draft: false
lastmod: "2006-03-03T15:52:00Z"
id: 274660
url: "https://didasoft.iteye.com/blog/274660"
---

看到Google的个人主页的Edit Html功能，是在页面中打开一个div, 然后此div下面的东东都不能点了，相当于模拟了一个Modal类型的对话框。个人觉得比较酷。于是，想找找能不能自己也实现一个。

果然已经有高手实现了。

以下是链接：

[http://www.subimage.com/dhtml/subModal/](http://www.subimage.com/dhtml/subModal/)

但是，他这个对话框有个缺点，就是不能拖动。我自己又给改了改，实现了拖动标题栏。  
我觉得还是挺有用的。

以下是链接：

[http://www.cnblogs.com/Files/didasoft/modaldialog.rar](http://www.cnblogs.com/Files/didasoft/modaldialog.rar)