Model Dialog with free JQuery User Interface


JQuery User Interface:


http://jqueryui.com/demos/dialog/#modal-form


1. when downloading the zip archive, you can select a theme from the gallery, or design yourself version.


theme-selecting


After unziping, you will find three folders and one html file:


zip


And all stuff under development-bundle is for development and test, there are also manuals for the libiary, but in this case, I don't need them. So I created a new folder named 'jqui' under my web document root, and copied js and css and index.html into it.


2. When I open the html in my browser through my Appache, I can't see the new theme.  Anyway, I goto the demo page of JQueryUI:http://jqueryui.com/demos/dialog/modal-form.html, and saved it to 'jqui'. And browse it in my browser, still couldn't see the theme that supposed to do, in fact, that is right, due to the linkages to the CSS files are wrong.


There are two link tags:


<head> 
	<meta charset="utf-8"> 
	<title>jQuery UI Dialog - Modal form</title> 
	<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> 
	<script src="../../jquery-1.5.1.js"></script> 
	<script src="../../external/jquery.bgiframe-2.1.2.js"></script> 
	<script src="../../ui/jquery.ui.core.js"></script> 
	<script src="../../ui/jquery.ui.widget.js"></script> 
	<script src="../../ui/jquery.ui.mouse.js"></script> 
	<script src="../../ui/jquery.ui.button.js"></script> 
	<script src="../../ui/jquery.ui.draggable.js"></script> 
	<script src="../../ui/jquery.ui.position.js"></script> 
	<script src="../../ui/jquery.ui.resizable.js"></script> 
	<script src="../../ui/jquery.ui.dialog.js"></script> 
	<script src="../../ui/jquery.effects.core.js"></script> 
	<link rel="stylesheet" href="../demos.css"> 
	<style> 

remove the first one, and change the second one to:


<link rel="stylesheet" href="css/redmond/jquery-ui-1.8.14.custom.css">

And then, it showed the correct theme:

theme

 3. But still not perfect, the font was a little bit scary. Use Google Chrome its build-in function 'inspect element' to see the font applied at the JQueryUI website, 

font


Open the CSS file-jquery-ui-1.8.14.custom.css, and change the line:


.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em; }

to


.ui-widget { font-family: Verdana, Arial, sans-serif; font-size: 1.1em; }


Finally and eventually, we see what we wanna to see. 



references:

15+ jQuery Popup Modal Dialog Plugins and Tutorials


14 jQuery Modal Dialog Boxes



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值