Foundation 按钮教程

 时间:2024-11-07 11:15:52

1、Foundation 提供了 6 种按钮样式。 .button 类创建了一个蓝色的按钮并附有内边距。不同颜色按钮类为: .secondary, .success, .info, .warning 或 .alert:实例<button type="button" class="button">Default</button><button type="button" class="button secondary">Secondary</button><button type="button" class="button success">Success</button><button type="button" class="button info">Info</button><button type="button" class="button warning">Warning</button><button type="button" class="button alert">Alert</button>

Foundation 按钮教程

2、按钮类可以使用在<a>,<button>, 或<input>元素:实例<ahref="#"class="button info"role="button">Link Button</a><buttontype="button"class="button info">Button</button><inputtype="button"class="button info"value="Input Button"><inputtype="submit"class="button info"value="Submit Button">为什么将 a 标签的 href 设置为 #当我们不希望链接点击跳转并得到 "404" 页面时,我们可以将 a 标签的 href 设置为 #

Foundation 按钮教程

3、按钮大小我们可以使用.large,.small或.tiny类来设置按钮大小:实例<buttontype="button"class="button large">Large</button><buttontype="button"class="button">Default</button><buttontype="button"class="button small">Small</button><buttontype="button"class="button tiny">Tiny</button>

Foundation 按钮教程

4、圆角按钮可以使用.radius和.round类来设置圆角按钮:实例<buttontype="button"class="button">Default Button</button><buttontype="button"class="button radius">Radius Button</button><buttontype="button"class="button round">Round Button</button>

Foundation 按钮教程

5、延展按钮可以使用.expand类来设置按钮的宽度为 100%:实例<buttontype="button"class="button">Default Button</button><buttontype="button"class="button expand">Expanded Button</button>

Foundation 按钮教程

6、禁用按钮可以使用.disabled类来设置按钮不可点击:实例<buttontype="button"class="button">Default Button</button><buttontype="button"class="button disabled">Disabled Button</button>

Foundation 按钮教程
  • 如何办理爱尔兰移民
  • 钛白粉的一般防护处理方法
  • 如何养兰花
  • 简单易学的花生米要怎样做
  • 燕窝中有哪些营养成分?
  • 热门搜索
    儿童手抄报模板 珍惜生命手抄报图片 手抄报的图案 小年手抄报 中国梦足球梦手抄报 关于桥的手抄报 礼仪手抄报 关于节日的手抄报 好书伴我行手抄报 有关大自然的手抄报