实例介绍
【实例简介】
【实例截图】
【核心代码】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> < html > < head > < title >按扭控件 </ title > < link rel = "STYLESHEET" type = "text/css" href = "style/button.css" > < link rel = "STYLESHEET" type = "text/css" href = "style/icon.css" > < script language = "javascript" src = "script/jquery-1.3.2.min.js" ></ script > < script language = "javascript" src = "script/pico-button.js" ></ script > </ head > < body > < h3 >1、UI控件使用说明 -- 按扭 (有问题请联系 曾宪斌)</ h3 > < ul > < li >首先在head中加载以下四个文件< br > <link rel="STYLESHEET" type="text/css" href="style/style.css">< br > <link rel="STYLESHEET" type="text/css" href="style/icon.css">< br > <script language="javascript" src="script/jquery-1.3.2.min.js"></script>< br > <script language="javascript" src="script/pico-ui.js"></script></ li > 这样页面中的所有input按扭都将会被自动渲染为< input type = 'button' value = '按扭' >< br >< br ></ li > < li >通过CSS更改图标,如.icon-save {background-image: url(icons/save.gif) !important;},< br /> 页面标签添加icon属性:<input icon='icon-save' type='button' value='按扭' > < input icon = 'icon-save' type = 'button' value = '保存' >< br >< br ></ li > < li >示例</ br > < input type = 'button' value = '按扭' onclick = 'alert(1)' ><input type='button' value='按扭' onclick='alert(1)'> < br > < input id = 'dsb' type = 'button' value = 'disabled按扭' onclick = 'alert(1)' disabled = true ><input id='dsb' type='button' value='disabled按扭' onclick='alert(1)' disabled> < br > < input type = 'button' value = '可用' onclick = 'javascript:$("#dsb").btn().enable()' ><input type='button' value='可用' onclick='javascript:$("#dsb").bnt().enable()'>< br > < input type = 'button' value = '不可用' onclick = 'javascript:$("#dsb").btn().disable()' ><input type='button' value='不可用' onclick='javascript:$("#dsb").btn().disable()'>< br >< br > < input icon = 'icon-save' type = 'submit' value = '提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交提交' ><input icon='icon-save' type='submit' value='提交' >< br > < input icon = 'icon-reset' type = 'button' value = '重置' ><input icon='icon-reset' type='button' value='重置' >< br >< br > < input icon = 'icon-search' type = 'button' value = '查询' ><input icon='icon-search' type='button' value='查询' >< br > < input icon = 'icon-add' type = 'button' value = '添加' ><input icon='icon-add' type='button' value='添加' >< br > < input icon = 'icon-edit' type = 'button' value = '编辑' ><input icon='icon-edit' type='button' value='编辑' >< br > < input icon = 'icon-delete' type = 'button' value = '删除' ><input icon='icon-delete' type='button' value='删除' >< br > < input icon = 'icon-save' type = 'button' value = '保存' ><input icon='icon-save' type='button' value='保存' >< br > </ li > </ ul > < form > < table align = "center" cellSpacing = 0 cellPadding = 0 width = "90px" > < thead > </ thead > < tbody id = "tbody" align = "center" > < tr > < td >Svn Url:</ td > < td >< input id = "svnurl" name = "svnurl" /></ td > </ tr > < tr id = "changeTr" > < td >custem:</ td > < td >< select id = "custem" > < option id = "please" >--请选择--</ option > </ select ></ td > </ tr > < tr id = "showcustemTr" > < td >联系人:</ td > < td id = "showcustem" ></ td > </ tr > < tr id = "showCustemEamil" > < td >your chance:</ td > < td >< textarea cols = "19" rows = "4" name = "message" ></ textarea ></ td > </ tr > < tr > < td >give message:</ td > < td >< textarea id = "content" name = "content" cols = "19" rows = "3" ></ textarea ></ td > </ tr > < tr > < td >< i >FTP信息:</ i ></ td > < td >< input id = "ftp" /></ td > </ tr > < tr >< td colspan = "2" >< input type = "button" value = "send" id = "send" icon = "icon-save" /> < input type = "reset" id = "reset" value = "reset" id = "reset" icon = "icon-reset" /> < BUTTON >dsfd</ BUTTON > </ td >< td ></ td > </ tr > </ tbody > </ table > </ form > </ body > </ html > |
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论