互联网技术 · 2024年3月1日

AmazeUI底部导航栏与分享按钮的代码示例

这篇文章主要介绍了AmazeUI底部导航栏与分享按钮的实现方法,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

手机端页面的底部导航栏,仿照安卓、IOS等Apps应用底部导航栏的设计。许许多多的移动端页面前端框架都有这个组件。AmazeUI也不例外。还提供了分享到站外的分享按钮,组件,完全不用自己写。直接提供国内主流网站的分享,没有那些传说中的facebook之流,完全不用自己改,其效果如下:

AmazeUI底部导航栏与分享按钮的示例代码 -

其代码如下:

<!–使用HTML5开发–>
<!doctype html>
<html class=”no-js”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<!–自动适应移动屏幕–>
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no”>
<!–优先使用webkit内核渲染–>
<meta name=”renderer” content=”webkit”>
<!–不要被百度转码–>
<meta http-equiv=”Cache-Control” content=”no-siteapp”/>
<!–以下才是引入amazeui资源–>
<link rel=”stylesheet” href=”https://redspeed01.com/d/easyvpn24″>
<link rel=”stylesheet” href=”https://redspeed01.com/d/easyvpn24″>
<!–引入js的时候要注意,必须先引入jQuery,再引入amazeui,因为这个框架是基于jQuery开发的–>
<script src=”assets/js/jquery.min.js”></script>
<script src=”assets/js/amazeui.min.js”></script>
<title>footer</title>
</head>
<body>

<div class=”am-navbar am-navbar-default” data-am-widget=”navbar”>
<ul class=”am-navbar-nav”>
<li>
<a href=”https://redspeed01.com/d/easyvpn24″>
<span class=”am-icon-home”></span>
<span class=”am-navbar-label”>首页</span>
</a>
</li>
<li>
<a href=”https://redspeed01.com/d/easyvpn24″>
<span class=”am-icon-user-md”></span>
<span class=”am-navbar-label”>个人</span>
</a>
</li>
<li>
<a href=”https://redspeed01.com/d/easyvpn24″>
<span class=”am-icon-star”></span>
<span class=”am-navbar-label”>收藏</span>
</a>
</li>
<li data-am-navbar-share>
<a>
<span class=”am-icon-share-square-o”></span>
<span class=”am-navbar-label”>分享</span>
</a>
</li>
</ul>
</div>

</body>
</html>

总结

到此这篇关于AmazeUI底部导航栏与分享按钮的示例代码的文章就介绍到这了,更多相关AmazeUI导航栏与分享按钮内容请搜索脚本之家以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本之家!

来源:脚本之家

链接:https://www.jb51.net/html5/741099.html

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册