jquery mobile中的按钮大集合

阅读更多
 本文小结了jquery mobile中的一些常见按钮的用法,代码和样式,供参考: 
 

1 首先是引入jquery和jquery mobile相关文件
 




   
   
   
   
   
   
   







2 下面是按钮列表
 
[*]Button Icons


[url=javascript:void(0)]Delete[/url]
[url=javascript:void(0)]Plus[/url]
[url=javascript:void(0)]Minus[/url]
[url=javascript:void(0)]Check[/url]
[url=javascript:void(0)]Grid[/url]
[url=javascript:void(0)]Foward[/url]
[url=javascript:void(0)]Refresh[/url] [url=javascript:void(0)]Gear[/url]
[url=javascript:void(0)]Left Arrow[/url]
[url=javascript:void(0)]Right Arrow[/url]
[url=javascript:void(0)]Up Arrow[/url] [url=javascript:void(0)]Down Arrow[/url]
[url=javascript:void(0)]Home[/url]
[url=javascript:void(0)]Alert[/url]
[url=javascript:void(0)]Star[/url]
[url=javascript:void(0)]Info[/url]
[url=javascript:void(0)]Refresh[/url]
[url=javascript:void(0)]Back[/url] 



运行后,下图是其效果:
jquery mobile中的按钮大集合_第1张图片

3 再来个没文字图片的

[*]Icons with no text


[url=javascript:void(0)]Delete[/url]
[url=javascript:void(0)]Plus[/url]
[url=javascript:void(0)]Minus[/url]
[url=javascript:void(0)]Check[/url] 



   jquery mobile中的按钮大集合_第2张图片

4 再演示文字结合按钮的和分组按钮的
 
[*]Inline

[url=javascript:void(0)]Delete[/url]
[url=javascript:void(0)]Plus[/url]
[url=javascript:void(0)]Minus[/url]
[url=javascript:void(0)]Check[/url]

[*]Horizontal Grouping


[url=javascript:void(0)]Button 1[/url] [url=javascript:void(0)]Button 2[/url] [url=javascript:void(0)]Button 2[/url]
[*]Normal Grouping
[url=javascript:void(0)]Button 1[/url] [url=javascript:void(0)]Button 2[/url] [url=javascript:void(0)]Button 2[/url]


效果为:
jquery mobile中的按钮大集合_第3张图片

5 演示没阴影,圆角的
 
[*]No Shadow


[url=javascript:void(0)]Delete[/url]
[url=javascript:void(0)]Plus[/url]

[*]No Corners


[url=javascript:void(0)]Minus[/url]
[url=javascript:void(0)]Check[/url]

[*]Icon Position


[url=javascript:void(0)]Grid[/url]    
[url=javascript:void(0)]Foward[/url]
[url=javascript:void(0)]Refresh[/url]
[url=javascript:void(0)]Gear[/url] 


  运行效果:
jquery mobile中的按钮大集合_第4张图片

你可能感兴趣的:(jquery)