用AmazeUI如何实现输入框组,代码是什么
Admin 2022-07-02 群英技术资讯 500 次浏览
本文主要介绍了AmazeUI 输入框组的示例代码,分享给大家,具体如下:
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>输入框组</title> <meta name="renderer" content="webkit"> <meta http-equiv="Cache-Control" content="no-siteapp"/> <link rel="icon" type="image/png" href="assets/i/favicon.png"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Amaze UI"/> <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileColor" content="#0e90d2"> <link rel="stylesheet" href="assets/css/amazeui.min.css"> </head> <body style="margin: 10px;"> <!--输入框与标签--> <div class="am-input-group"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="Username"> </div> <div class="am-input-group"> <span class="am-input-group-label"><i class="am-icon-lock am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="Password"> </div> <div class="am-input-group"> <input type="text" class="am-form-field"> <span class="am-input-group-label">.00</span> </div> <div class="am-input-group"> <span class="am-input-group-label">$</span> <input type="text" class="am-form-field"> <span class="am-input-group-label">.00</span> </div> <!--复选/单选框与输入框--> <div class="am-g"> <div class="am-u-lg-6"> <div class="am-input-group"> <span class="am-input-group-label"> <input type="checkbox"> </span> <input type="text" class="am-form-field"> </div> </div> <div class="am-u-lg-6"> <div class="am-input-group"> <span class="am-input-group-label"> <input type="radio"> </span> <input type="text" class="am-form-field"> </div> </div> </div> <!--输入框结合 Button--> <div class="am-g"> <div class="am-u-lg-6"> <div class="am-input-group"> <span class="am-input-group-btn"> <button class="am-btn am-btn-default" type="button"><span class="am-icon-search"></span> </button> </span> <input type="text" class="am-form-field"> </div> </div> <div class="am-u-lg-6"> <div class="am-input-group"> <input type="text" class="am-form-field"> <span class="am-input-group-btn"> <button class="am-btn am-btn-default" type="button">手气还行</button> </span> </div> </div> </div> <!--尺寸--> <div class="am-input-group am-input-group-lg"> <span class="am-input-group-label">@</span> <input type="text" class="am-form-field" placeholder="Username"> </div> <div class="am-input-group"> <span class="am-input-group-label">@</span> <input type="text" class="am-form-field" placeholder="Username"> </div> <div class="am-input-group am-input-group-sm"> <span class="am-input-group-label">@</span> <input type="text" class="am-form-field" placeholder="Username"> </div> <!--颜色--> <div class="am-input-group am-input-group-primary"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="提示信息"> </div> <div class="am-input-group am-input-group-secondary"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="提示信息"> </div> <div class="am-input-group am-input-group-success"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="提示信息"> </div> <div class="am-input-group am-input-group-warning"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="提示信息"> </div> <div class="am-input-group am-input-group-danger"> <span class="am-input-group-label"><i class="am-icon-user am-icon-fw"></i></span> <input type="text" class="am-form-field" placeholder="提示信息"> </div> <div class="am-g"> <div class="am-u-lg-6"> <div class="am-input-group am-input-group-danger"> <span class="am-input-group-label"> <input type="checkbox"> </span> <input type="text" class="am-form-field"> </div> </div> <div class="am-u-lg-6"> <div class="am-input-group am-input-group-primary"> <span class="am-input-group-btn"> <button class="am-btn am-btn-primary" type="button"><span class="am-icon-search"></span></button> </span> <input type="text" class="am-form-field"> </div> </div> </div> <!--[if (gte IE 9)|!(IE)]><!--> <script src="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[if lte IE 8 ]> <script src="assets/ie8/jquery.min.js"></script> <script src="assets/ie8/modernizr.js"></script> <script src="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <script src="assets/js/amazeui.min.js"></script> </body> </html>
效果图:
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
css计数器是一个通过变量来设置,根据规则递增变量。在web设计中,我们常会使用到有序列表,有序列表的好处就是能够清楚地展示网站内容,但是如果只是单纯的数字,那么页面不够美观,而且手动添加样式又很麻烦。如果我们使用CSS计数器就能很便捷的美化数字有序列表。下面我们一起来看看CSS计数器怎么用。
CSS兄弟选择器的两种类型:相邻兄弟选择器,给指定选择器后面紧跟的那个选择器选中的标签设置属性。通用兄弟选择器, 给指定选择器后面的所有选择器选中的所有标签设置属性。
在 CSS 中要设置元素水平垂直居中是一个非常常见的需求了。这篇文章主要介绍了CSS实现元素居中原理解析,本文分别从行内元素和块级元素进行说明,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
这篇文章给大家分享一下时间轴timeline控件的使用,时间轴控件还是比较实用的,能轻松的实现时间线的效果,那么具体怎样用的,下文给大家分享了用时间轴timeline控件实现垂直的时间线效果,感兴趣的朋友可以参考。
这篇文章主要介绍了css 借助autoflow 属性 实现 选座位效果,非常不错,具有一定的参考借鉴价值,需要的朋友可以参考下
成为群英会员,开启智能安全云计算之旅
立即注册Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008