html5+css3写悬浮控制按钮
摘要:html5+css3写悬浮控制按钮
html5代码
运行代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>web开发【www.webkfa.com】</title> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="stylesheet" href="http://statics.webkfa.com/mui/mui.min.css"> <script src="http://statics.webkfa.com/mui/mui.min.js"></script> <script src="http://statics.webkfa.com/mui/app.js"></script> <style> html, body { background-color: #efeff4; } </style> <script> mui.init(); </script> </head> <body> <style> .mui-btn{ margin-top: 10px; margin-right: 10px; margin-left: 5px; } .mui-btn.mui-btn-mini{ margin-left: 13px; margin-right: 18px; } </style> <header class="mui-bar mui-bar-nav"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <h1 class="mui-title">悬浮控制按钮</h1> </header> <div class="mui-content"> <div class="mui-content-padded"> <button class="mui-btn mui-fab mui-btn-mini"> <span class="mui-icon mui-icon-search"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-primary"> <span class="mui-icon mui-icon-plus"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-success"> <span class="mui-icon mui-icon-sms"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-danger"> <span class="mui-icon mui-icon-category"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-outlined"> <span class="mui-icon mui-icon-search"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-primary mui-btn-outlined"> <span class="mui-icon mui-icon-plus"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-success mui-btn-outlined"> <span class="mui-icon mui-icon-sms"></span> </button> <button class="mui-btn mui-fab mui-btn-mini mui-btn-danger mui-btn-outlined"> <span class="mui-icon mui-icon-category"></span> </button> </div> <div class="mui-content-padded"> <button class="mui-btn mui-fab"> <span class="mui-icon mui-icon-search"></span> </button> <button class="mui-btn mui-fab mui-btn-primary"> <span class="mui-icon mui-icon-plus"></span> </button> <button class="mui-btn mui-fab mui-btn-success"> <span class="mui-icon mui-icon-sms"></span> </button> <button class="mui-btn mui-fab mui-btn-danger"> <span class="mui-icon mui-icon-category"></span> </button> <button class="mui-btn mui-fab mui-btn-outlined"> <span class="mui-icon mui-icon-search"></span> </button> <button class="mui-btn mui-fab mui-btn-primary mui-btn-outlined"> <span class="mui-icon mui-icon-plus"></span> </button> <button class="mui-btn mui-fab mui-btn-success mui-btn-outlined"> <span class="mui-icon mui-icon-sms"></span> </button> <button class="mui-btn mui-fab mui-btn-danger mui-btn-outlined"> <span class="mui-icon mui-icon-category"></span> </button> </div> </div> </body> </html>
相关文章
最新发布
阅读排行
热门文章
猜你喜欢