按钮Button

  am-btn-xx(default、primary、secondary、success、warning、danger、link)

  am-radius 圆角按钮

  am-round 椭圆形按钮

  am-active 激活状态

  am-disabled 禁用状态

  按钮尺寸 am-btn-xl  am-btn-lg  am-btn-default  am-btn-sm  am-btn-xs

  am-btn-block 块级显示

  按钮Icon

  am-icon-cog设置  am-icon-shopping-cart购物车  am-icon-spinner am-icon-spi加载中  am-icon-cloud-download下载

    Code

  行内代码<code></code>

  代码片段<pre></pre>

  代码块高度<pre  class="am-pre-scrollable"> </pre>

  

    Form

  块级显示时在容器上添加am-checkbox、am-radio

  行内显示时在容器上添加am-checkbox-inline、am-radio-inline  

  

  <div class="am-form-group am-form-file">
    <button type="button" class="am-btn am-btn-default am-btn-sm">
    <i class="am-icon-cloud-upload"></i> 选择要上传的文件</button>
    <input type="file" multiple>
  </div>

  

  <div class="am-form-group am-form-file">
    <i class="am-icon-cloud-upload"></i> 选择要上传的文件
    <input type="file" multiple>
  </div>

  

  在容器上添加.am-form class,容器里的子元素才会应用Amaze UI定义的样式。  

  圆角表单域 am-form-filed am-radius am-radius

  椭圆表单域 am-form-filed am-round

  给<fieldset>元素添加disabled属性,禁用所有的子元素

  禁用链接 am-disabled

  水平表单 am-form-horizontal

  行内排列 am-form-inline  行内排列的元素并没有设置右边距,默认使用inline-blcok元素的间距,压缩HTML后行内表单元素的右边距会消失,需自行处理。

  表单group元素加上am-form-icon,依赖icon组件

  <form action="" class="am-form am-form-inline">
    <div class="am-form-group am-form-icon">
      <i class="am-icon-calendar"></i>
      <input type="text" class="am-form-field" placeholder="日期">
    </div>

    <div class="am-form-group am-form-icon">
      <i class="am-icon-clock-o"></i>
      <input type="text" class="am-form-field" placeholder="时间">
    </div>
  </form>

  验证状态 

  <form action="" class="am-form">
    <div class="am-form-group am-form-success am-form-icon am-form-feedback">
      <label class="am-form-label" for="doc-ipt-success">验证成功</label>
      <input type="text" id="doc-ipt-success" class="am-form-field">
      <span class="am-icon-check"></span>
    </div>
    <div class="am-form-group am-form-warning">
      <label class="am-form-label" for="doc-ipt-warning">验证警告</label>
      <input type="text" id="doc-ipt-warning" class="am-form-field">
    </div>
    <div class="am-form-group am-form-error">
      <label class="am-form-label" for="doc-ipt-error">验证失败</label>
      <input type="text" id="doc-ipt-error" class="am-form-field">
    </div>
  </form>

  带图标的验证:添加am-form-icon和am-form-feedback  

  <form class="am-form">
    <div class="am-form-group am-form-success am-form-icon am-form-feedback">
      <input type="text" class="am-form-field" placeholder="验证成功">
      <span class="am-icon-check"></span>
    </div>
    <div class="am-form-group am-form-warning am-form-icon am-form-feedback">
      <input type="text" class="am-form-field" placeholder="验证警告">
      <span class="am-icon-warning"></span>
    </div>
    <div class="am-form-group am-form-error am-form-icon am-form-feedback">
      <input type="text" class="am-form-field" placeholder="验证失败">
      <span class="am-icon-times"></span>
    </div>
  </form>

  单个域的大小:am-input-lg、am-input-sm

  组大小 在am-form-group的基础上添加了am-form-group-sm和am-form-group-lg,可以实现对表达大小的设置。

  使用am-form-set嵌套一些列<input>元素。

  <div class="am-g">
    <div class="am-u-md-8 am-u-sm-centered">
      <form class="am-form">
        <fieldset class="am-form-set">
          <input type="text" placeholder="取个名字">
          <input type="text" placeholder="设个密码">
          <input type="email" placeholder="填下邮箱">
        </fieldset>
        <button type="submit" class="am-btn am-btn-primary am-btn-block">注册个账号</button>
      </form>
    </div>
  </div>

  demo

<form class="am-form">
  <fieldset>
  <legend>表单标题</legend>

  <div class="am-form-group">
    <label for="doc-ipt-email-1">邮件</label>
    <input type="email" class="" id="doc-ipt-email-1" placeholder="输入电子邮件">
  </div>

  <div class="am-form-group">
    <label for="doc-ipt-pwd-1">密码</label>
    <input type="password" class="" id="doc-ipt-pwd-1" placeholder="设置个密码吧">
  </div>

  <div class="am-form-group">
    <label for="doc-ipt-file-1">原生文件上传域</label>
    <input type="file" id="doc-ipt-file-1">
    <p class="am-form-help">请选择要上传的文件...</p>
  </div>

  <div class="am-form-group am-form-file">
    <label for="doc-ipt-file-2">Amaze UI 文件上传域</label>
    <div>
      <button type="button" class="am-btn am-btn-default am-btn-sm">
      <i class="am-icon-cloud-upload"></i> 选择要上传的文件</button>
    </div>
    <input type="file" id="doc-ipt-file-2">
  </div>

  <div class="am-checkbox">
    <label>
      <input type="checkbox"> 复选框,选我选我选我
    </label>
  </div>  

  <div class="am-radio">
    <label>
      <input type="radio" name="doc-radio-1" value="option1" checked>
      单选框 - 选项1
    </label>
  </div>

  <div class="am-radio">
    <label>
      <input type="radio" name="doc-radio-1" value="option2">
        单选框 - 选项2
    </label>
  </div>

  <div class="am-form-group">
    <label class="am-checkbox-inline">
      <input type="checkbox" value="option1"> 选我
    </label>
    <label class="am-checkbox-inline">
      <input type="checkbox" value="option2"> 同时可以选我
    </label>
    <label class="am-checkbox-inline">
      <input type="checkbox" value="option3"> 还可以选我
    </label>
   </div>

  <div class="am-form-group">
    <label class="am-radio-inline">
      <input type="radio" value="" name="docInlineRadio"> 每一分
    </label>
    <label class="am-radio-inline">
      <input type="radio" name="docInlineRadio"> 每一秒
    </label>
    <label class="am-radio-inline">
      <input type="radio" name="docInlineRadio"> 多好
    </label>
  </div>

  <div class="am-form-group">
    <label for="doc-select-1">下拉多选框</label>
    <select id="doc-select-1">
      <option value="option1">选项一...</option>
      <option value="option2">选项二.....</option>
      <option value="option3">选项三........</option>
    </select>
    <span class="am-form-caret"></span>
  </div>

  <div class="am-form-group">
    <label for="doc-select-2">多选框</label>
    <select multiple class="" id="doc-select-2">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </select>
  </div>

  <div class="am-form-group">
    <label for="doc-ta-1">文本域</label>
    <textarea class="" rows="5" id="doc-ta-1"></textarea>
  </div>

  <p><button type="submit" class="am-btn am-btn-default">提交</button></p>
</fieldset>
</form>

    图片

  响应式图片 am-img-responsive

  圆角图片 am-radius

  椭圆角图片 am-round

  圆形  am-cricle

  边框 am-img-thumbnail

  

    表格(am-table)

  基本边框 am-table-bordered

  圆角边框 am-table-bordered am-table-radius 外层圆角边框通过box-shadow实现

  单元格状态 am-active(激活状态) am-disabled(禁用) am-primary(蓝色高亮) am-success(绿色高亮) am-warning(橙色高亮) am-danger(红色高亮)

  斑马纹效果 am-table-striped

  状态 am-table-hover

  紧凑 am-table-compact 调整padding显得单元格更紧凑

  响应式表格 am-text-nowrap(禁止文字换行)  am-scrollable-horizontal(内容超出容器宽度时显示水平滚动条)

  单元格水平居中对齐 am-table-centered

  单元格中文字垂直居中对齐 am-text-middle

  

AmazeUI HTML元素的更多相关文章

  1. amazeui学习笔记--css(HTML元素5)--表格Table

    amazeui学习笔记--css(HTML元素5)--表格Table 一.总结 1.基本样式:am-table:直接模块名  <table class="am-table"& ...

  2. amazeui学习笔记--css(HTML元素4)--图片image

    amazeui学习笔记--css(HTML元素4)--图片image 一.总结 1.响应式图片:随着页面宽度而变化 .am-img-responsive class. <img src=&quo ...

  3. amazeui学习笔记--css(HTML元素3)--表单Form

    amazeui学习笔记--css(HTML元素3)--表单Form 一.总结 1.form样式使用:在容器上添加 .am-form class,容器里的子元素才会应用 Amaze UI 定义的样式. ...

  4. amazeui学习笔记--css(HTML元素2)--代码Code

    amazeui学习笔记--css(HTML元素2)--代码Code 一.总结 1.行内代码:code标签<code> 2.代码片段:pre标签<pre> 3.限制代码块高度:添 ...

  5. amazeui学习笔记--css(HTML元素1)--按钮Button

    amazeui学习笔记--css(HTML元素1)--按钮Button 一.总结 1.button的基本使用:a.am-btn 在要应用按钮样式的元素上添加 .am-btn,b.颜色 再设置相应的颜色 ...

  6. AmazeUI 框架知识点-元素

    1.按钮  .am-btn 圆角按钮 .am-radius 椭圆形按钮 .am-round 按钮激活状态 .am-active 禁用状态 .am-disabled 2.按钮尺寸.am-btn-xl . ...

  7. AmazeUI布局

    AmazeUI使用了12列的响应式网络系统.使用时需在外围容器上添加.am-g class,在列上添加.am-u-[sm|md|lg]-[1-12] class,然后根据不同的屏幕需求设置不同的宽度. ...

  8. AmazeUI基本样式

    AmazeUI是一个轻量级.Mobile first的前端框架,基于开源社区流行的前端框架编写. Normalize AmazeUI使用了normalize.css,但做了些调整:html添加了-we ...

  9. react搭配amazeui环境搭建

    1.安装node https://nodejs.org/en/download/ 查看node   npm版本 2.安装react 创建新的react单页面应用 npm install  -g cre ...

随机推荐

  1. NSException

    NSException是什么? 最熟悉的陌生人,这是我对NSException的概述,为什么这么说呢?其实很多开发者接触到NSException的频率非常频繁,但很多人都不知道什么是NSExcepti ...

  2. 《JavaScript权威指南》读书笔记(二)

    日期:2015-12-04 js 的原型::闭包:闭包这是个相当复杂的东西...现在初步理解:    http://segmentfault.com/a/1190000000652891    闭包有 ...

  3. SQL Server数据库(表的创建)

    表的创建 1.创建列(字段):列名+类型 2.设置主键列:能够唯一表示一条数据 3.设置唯一键:设计--索引/键--添加--唯一键(选择列)--确定 唯一键的内容不能重复 4.外键关系:一张表(从表) ...

  4. 【转】理解cookie和session机制

    cookie和session机制之间的区别与联系 具体来说cookie机制采用的是在客户端保持状态的方案.它是在用户端的会话状态的存贮机制,他需要用户打开客户端的cookie支持.cookie的作用就 ...

  5. JDE910笔记1--基础介绍及配置

    1.一般JDE部署后环境: DV:开发环境 PY:测试环境 PD:正式环境 根据端口号区分不同环境,可配置.同时,JDE默认使用分发服务器,不同环境连接为不同的数据库. 2.命名规范: 自定义项目.函 ...

  6. VS2003编译后的网站如何修改代码

    VS2003编译后的网站,如果没有源代码,而要修改里面的代码时,可以以以下方式解决: 反编译dll,把找出cs代码文件,然后重新建一个类项目,把此文件中的代码修改后重新生成dll,放在编译的网站中的b ...

  7. K最近邻

    k算法实现的步骤: 第一:确定K值(就是指最近邻居的个数).一般是一个奇数,因为测试样本个数有限, 第二:确定度量的长度,也就是余弦值,根据公式来算:     然后根据这个距离,排序大小,从中选出前k ...

  8. 时钟 IoTimer

    /* 例程是在运行在DISPATCH_LEVEL的IRQL级别 例程中不能使用分页内存 另外在函数首部使用 #pragma LOCKEDCODE */ #include "Driver.h& ...

  9. BestCoder——59

    http://bestcoder.hdu.edu.cn/contests/contest_show.php?cid=640 第一题:给一堆书的序列 每次操作只能将书从中间移到最上面 求最少移动多少次 ...

  10. 二模 (6) day1

    第一题: 设 S(N)表示 N 的各位数字之和,如 S(484)=4+8+4=16,S(22)=2+2=4.如果一个正整数 x满足 S(x*x)=S(x)*S(x),我们称 x 为 Rabbit Nu ...