一個好用的Dialog外掛程式

來源:互聯網
上載者:User

      網頁中經常需要彈出dialog,雖然很多JS開源架構都提供這個功能,但是效果都不是很好,比如easy-UI。修改樣式這些又不是我擅長的,身邊又沒有美工兄弟,苦逼啊!

      

(Easy-UI的BasicDialog)


而且如果使用這個,只能在div中新增內容,Source Code如下:

<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Basic Dialog - jQuery EasyUI Demo</title><link rel="stylesheet" type="text/css"href="../../themes/default/easyui.css"><link rel="stylesheet" type="text/css" href="../../themes/icon.css"><link rel="stylesheet" type="text/css" href="../demo.css"><script type="text/javascript" src="../../jquery.min.js"></script><script type="text/javascript" src="../../jquery.easyui.min.js"></script></head><body><h2>Basic Dialog</h2><p>Click below button to open or close dialog.</p><div style="margin:20px 0;"><a href="javascript:void(0)" class="easyui-linkbutton"onclick="$('#dlg').dialog('open')">Open</a> <ahref="javascript:void(0)" class="easyui-linkbutton"onclick="$('#dlg').dialog('close')">Close</a></div><div id="dlg" class="easyui-dialog" title="Basic Dialog" data-options="iconCls:'icon-save'" style="width:400px;height:200px;padding:10px">The dialog content.</div></body></html>


        可以看到這樣只能在div中編輯html代碼,讓其顯示在dialog中,且dialog樣式簡單,單一,醜......

       下面是我在網上找到的一款非常好的dialog外掛程式,已用於自己的項目中,它可以在dialog中寫HTML代碼,也可以引入其他HTML檔案,操作方便、多樣,效果美觀,地址是:http://www.5icool.org/demo/2012/a00576/,使用方法這個地址裡面非常詳細,我就不多說了,僅上個圖:










聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.