前言:
今天大家对“jquery论坛发帖功能”大概比较注重,姐妹们都需要知道一些“jquery论坛发帖功能”的相关资讯。那么小编在网络上网罗了一些对于“jquery论坛发帖功能””的相关文章,希望看官们能喜欢,看官们一起来了解一下吧!本案例综合运用bootstrap框架中多个知识点实现较为复杂的网站前端效果,对大家的学习有一定的促进作用。
案件中涉及到的知识点包括导航(nav)、栅格、警告框(alert)、面板(panel)、下拉菜单(dropdown)等,网页部分只做了首页和用户管理,其他页面类似。案例效果如下:
制作的步骤大致是先制作后台首页,然后以另存为的方式制作其他分页。
后台首页index.html的代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--移动设备优先 -->
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>网站后台管理2</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
</head>
<body>
<!--导航-->
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a href="index.html" class="navbar-brand logo">网站后台管理2</a>
<button class="navbar-toggle" data-toggle="collapse" data-target="#dh">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class=" navbar-collapse collapse" id="dh">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">后台首页</a></li>
<li><a href="use-m.html">用户管理</a></li>
<li><a href="cont-m.html">内容管理</a></li>
<li><a href="tag-m.html">标签管理</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" data-toggle="dropdown">admin<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">前台首页</a></li>
<li><a href="#">个人设置</a></li>
<li><a href="#">帐户中心</a></li>
<li><a href="#">我的收藏</a></li>
</ul>
</li>
<li><a href="#">退出</a></li>
</ul>
</div>
</div>
</nav>
<!-- -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger fade in">
<button class="close" data-dismiss="alert"><span>×</span></button>
<h4>提示:</h4>
<p>此部分模块升级中...</p>
<p>
<button class="btn btn-danger" data-dismiss="alert">关闭</button>
</p>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
网站数据统计
</div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr><th>统计项目</th><th>今日</th><th>昨日</th></tr>
</thead>
<tbody>
<tr><td>注册会员</td><td>340</td><td>200</td></tr>
<tr><td>VIP会员</td><td>305</td><td>170</td></tr>
<tr><td>发帖数量</td><td>450</td><td>210</td></tr>
<tr><td>转载数量</td><td>810</td><td>520</td></tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
网站热贴
</div>
<!--<div>-->
<ul class="list-group">
<li class="list-group-item">
<a href="#">爱学习资源网,学习随时随地<small class="pull-right">2017/10/15</small></a>
</li>
<li class="list-group-item">
<a href="#">爱学习资源网,学习随时随地<small class="pull-right">2017/10/15</small></a>
</li>
<li class="list-group-item">
<a href="#">爱学习资源网,学习随时随地<small class="pull-right">2017/10/15</small></a>
</li>
<li class="list-group-item">
<a href="#">爱学习资源网,学习随时随地<small class="pull-right">2017/10/15</small></a>
</li>
<li class="list-group-item">
<a href="#">爱学习资源网,学习随时随地<small class="pull-right">2017/10/15</small></a>
</li>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>
用户管理页use-m.html的代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--移动设备优先 -->
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<title>网站后台管理2</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
</head>
<body>
<!--导航-->
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a href="index.html" class="navbar-brand logo">网站后台管理2</a>
<button class="navbar-toggle" data-toggle="collapse" data-target="#dh">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class=" navbar-collapse collapse" id="dh">
<ul class="nav navbar-nav">
<li><a href="index.html">后台首页</a></li>
<li class="active"><a href="use-m.html">用户管理</a></li>
<li><a href="cont-m.html">内容管理</a></li>
<li><a href="tag-m.html">标签管理</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" data-toggle="dropdown">admin<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">前台首页</a></li>
<li><a href="#">个人设置</a></li>
<li><a href="#">帐户中心</a></li>
<li><a href="#">我的收藏</a></li>
</ul>
</li>
<li><a href="#">退出</a></li>
</ul>
</div>
</div>
</nav>
<!-- -->
<div class="container">
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li class="active">
<a href="use-m.html">用户列表</a>
</li>
</ul>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>用户名</th>
<th>邮箱</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>小明</td>
<td>4365645353@qq.com</td>
<td>
<div role="presentation" class="dropdown">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
操作<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">编辑</a></li>
<li><a href="#">删除</a></li>
<li><a href="#">锁定</a></li>
<li><a href="#">修改密码</a></li>
</ul>
</div>
</td>
</tr>
<tr>
<th scope="row">2</th>
<td>小新</td>
<td>121265489@qq.com</td>
<td>
<div role="presentation" class="dropdown">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
操作<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">编辑</a></li>
<li><a href="#">删除</a></li>
<li><a href="#">锁定</a></li>
<li><a href="#">修改密码</a></li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
<nav class="pull-right">
<ul class="pagination">
<li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2 </a></li>
<li><a href="#">3 </a></li>
<li><a href="#">4 </a></li>
<li><a href="#">5 </a></li>
<li><a href="#">6 </a></li>
<li><a href="#"><span aria-hidden="true">»</span></a></li>
</ul>
</nav>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>
至此,案例制作完成。
标签: #jquery论坛发帖功能