广告
返回顶部
首页 > 资讯 > 后端开发 > Python >adminLTE 教程 -3 box
  • 409
分享到

adminLTE 教程 -3 box

教程adminLTEbox 2023-01-31 07:01:59 409人浏览 八月长安

Python 官方文档:入门教程 => 点击学习

摘要

adminLTE的box算是它样式中最主要的部分,下面的连接是演示地址,这里面基本上列举出来所有的样式和插件,目的就是希望用户可以在这一个网站中,全面的了解adminLTE。并且,更重要的是,我们可以直接在F12的调试窗口,选中我们想要的样

adminLTE的box算是它样式中最主要的部分,

下面的连接是演示地址,这里面基本上列举出来所有的样式和插件,目的就是希望用户可以在这一个网站中,全面的了解adminLTE。

并且,更重要的是,我们可以直接在F12的调试窗口,选中我们想要的样式,直接复制粘贴。这也是作者希望我们这样做的:adminLTE演示地址

先看一下我摘抄的几个实例,这是adminLTE的box中几种分类,先睹为快(真正项目中还是需要自己去上面的演示地址寻找自己需要的代码):

1、info-box

<div class="info-box">
	<span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>

	<div class="info-box-content">
		<span class="info-box-text">Messages</span>
		<span class="info-box-number">1,410</span>
	</div>
	<!-- /.info-box-content -->
</div>

wKioL1jHn63TfriNAAANG_OBfL4913.png-wh_50


2、info-box 标题带背景

<div class="info-box bg-aqua">
	<span class="info-box-icon"><i class="fa fa-bookmark-o"></i></span>

	<div class="info-box-content">
		<span class="info-box-text">Bookmarks</span>
		<span class="info-box-number">41,410</span>

		<div class="progress">
			<div class="progress-bar" style="width: 70%"></div>
		</div>
				<span class="progress-description">
					70% Increase in 30 Days
				</span>
	</div>
	<!-- /.info-box-content -->
</div>

wKioL1jHoTjwBNkYAAAVeG_EilM983.png-wh_50

3、small-box 带背景

<div class="small-box bg-aqua">
	<div class="inner">
		<h3>150</h3>

		<p>New Orders</p>
	</div>
	<div class="icon">
		<i class="fa fa-shopping-cart"></i>
	</div>
	<a href="#" class="small-box-footer">
		More info <i class="fa fa-arrow-circle-right"></i>
	</a>
</div>

wKiom1jHoUrhJdHOAAAU0wz2tfA771.png-wh_50

4、box 默认样式

<div class="box box-default">
	<div class="box-header with-border">
		<h3 class="box-title">Expandable</h3>

		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
			</button>
		</div>
		<!-- /.box-tools -->
	</div>
	<!-- /.box-header -->
	<div class="box-body" style="display: block;">
		The body of the box
	</div>
	<!-- /.box-body -->
</div>

wKioL1jHoWahUMMXAAANpAl4WRQ024.png-wh_50

5、box 成功样式 标题solid

<div class="box box-success box-solid">
	<div class="box-header with-border">
		<h3 class="box-title">Removable</h3>

		<div class="box-tools pull-right">
			<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
		</div>
		<!-- /.box-tools -->
	</div>
	<!-- /.box-header -->
	<div class="box-body">
		The body of the box
	</div>
	<!-- /.box-body -->
</div>

wKiom1jHoYDC9AH0AAAOE3yCv9s025.png-wh_50

6、box 聊天对话框

<div class="box box-primary direct-chat direct-chat-primary">
	<div class="box-header with-border">
		<h3 class="box-title">Direct Chat</h3>

		<div class="box-tools pull-right">
			<span data-toggle="tooltip" title="" class="badge bg-light-blue" data-original-title="3 New Messages">3</span>
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
			</button>
			<button type="button" class="btn btn-box-tool" data-toggle="tooltip" title="" data-widget="chat-pane-toggle" data-original-title="Contacts">
				<i class="fa fa-comments"></i></button>
			<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
		</div>
	</div>
	<!-- /.box-header -->
	<div class="box-body">
		<!-- Conversations are loaded here -->
		<div class="direct-chat-messages">
			<!-- Message. Default to the left -->
			<div class="direct-chat-msg">
				<div class="direct-chat-info clearfix">
					<span class="direct-chat-name pull-left">Alexander Pierce</span>
					<span class="direct-chat-timestamp pull-right">23 Jan 2:00 pm</span>
				</div>
				<!-- /.direct-chat-info -->
				<img class="direct-chat-img" src="../dist/img/user1-128x128.jpg" alt="Message User Image"><!-- /.direct-chat-img -->
				<div class="direct-chat-text">
					Is this template really for free? That's unbelievable!
				</div>
				<!-- /.direct-chat-text -->
			</div>
			<!-- /.direct-chat-msg -->

			<!-- Message to the right -->
			<div class="direct-chat-msg right">
				<div class="direct-chat-info clearfix">
					<span class="direct-chat-name pull-right">Sarah Bullock</span>
					<span class="direct-chat-timestamp pull-left">23 Jan 2:05 pm</span>
				</div>
				<!-- /.direct-chat-info -->
				<img class="direct-chat-img" src="../dist/img/user3-128x128.jpg" alt="Message User Image"><!-- /.direct-chat-img -->
				<div class="direct-chat-text">
					You better believe it!
				</div>
				<!-- /.direct-chat-text -->
			</div>
			<!-- /.direct-chat-msg -->
		</div>
		<!--/.direct-chat-messages-->

		<!-- Contacts are loaded here -->
		<div class="direct-chat-contacts">
			<ul class="contacts-list">
				<li>
					<a href="#">
						<img class="contacts-list-img" src="../dist/img/user1-128x128.jpg" alt="User Image">

						<div class="contacts-list-info">
									<span class="contacts-list-name">
										Count Dracula
										<small class="contacts-list-date pull-right">2/28/2015</small>
									</span>
							<span class="contacts-list-msg">How have you been? I was...</span>
						</div>
						<!-- /.contacts-list-info -->
					</a>
				</li>
				<!-- End Contact Item -->
			</ul>
			<!-- /.contatcts-list -->
		</div>
		<!-- /.direct-chat-pane -->
	</div>
	<!-- /.box-body -->
	<div class="box-footer">
		<fORM action="#" method="post">
			<div class="input-group">
				<input type="text" name="message" placeholder="Type Message ..." class="form-control">
						<span class="input-group-btn">
							<button type="submit" class="btn btn-primary btn-flat">Send</button>
						</span>
			</div>
		</form>
	</div>
	<!-- /.box-footer-->
	</div>

wKioL1jHoafR5BNUAABSIN85EuA218.png-wh_50

7、box 用户头像

<div class="box box-widget widget-user">
	<!-- Add the bg color to the header using any of the bg-* classes -->
	<div class="widget-user-header bg-black" style="background: url('../dist/img/photo1.png') center center;">
		<h3 class="widget-user-username">Elizabeth Pierce</h3>
		<h5 class="widget-user-desc">WEB Designer</h5>
	</div>
	<div class="widget-user-p_w_picpath">
		<img class="img-circle" src="../dist/img/user3-128x128.jpg" alt="User Avatar">
	</div>
	<div class="box-footer">
		<div class="row">
			<div class="col-sm-4 border-right">
				<div class="description-block">
					<h5 class="description-header">3,200</h5>
					<span class="description-text">SALES</span>
				</div>
				<!-- /.description-block -->
			</div>
			<!-- /.col -->
			<div class="col-sm-4 border-right">
				<div class="description-block">
					<h5 class="description-header">13,000</h5>
					<span class="description-text">FOLLOWERS</span>
				</div>
				<!-- /.description-block -->
			</div>
			<!-- /.col -->
			<div class="col-sm-4">
				<div class="description-block">
					<h5 class="description-header">35</h5>
					<span class="description-text">PRODUCTS</span>
				</div>
				<!-- /.description-block -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</div>
</div>

wKioL1jHobzCL2APAAEyzhh2zVg166.png-wh_50

8、box 小窗口样式

<div class="box box-widget">
	<div class="box-header with-border">
		<div class="user-block">
			<img class="img-circle" src="../dist/img/user1-128x128.jpg" alt="User Image">
			<span class="username"><a href="#">Jonathan Burke Jr.</a></span>
			<span class="description">Shared publicly - 7:30 PM Today</span>
		</div>
		<!-- /.user-block -->
		<div class="box-tools">
			<button type="button" class="btn btn-box-tool" data-toggle="tooltip" title="Mark as read">
				<i class="fa fa-circle-o"></i></button>
			<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
			</button>
			<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
		</div>
		<!-- /.box-tools -->
	</div>
	<!-- /.box-header -->
	<div class="box-body">
		<img class="img-responsive pad" src="../dist/img/photo2.png" alt="Photo">

		<p>I took this photo this morning. What do you guys think?</p>
		<button type="button" class="btn btn-default btn-xs"><i class="fa fa-share"></i> Share</button>
		<button type="button" class="btn btn-default btn-xs"><i class="fa fa-thumbs-o-up"></i> Like</button>
		<span class="pull-right text-muted">127 likes - 3 comments</span>
	</div>
	<!-- /.box-body -->
	<div class="box-footer box-comments">
		<div class="box-comment">
			<!-- User p_w_picpath -->
			<img class="img-circle img-sm" src="../dist/img/user3-128x128.jpg" alt="User Image">

			<div class="comment-text">
						<span class="username">
							Maria Gonzales
							<span class="text-muted pull-right">8:03 PM Today</span>
						</span><!-- /.username -->
				It is a long established fact that a reader will be distracted
				by the readable content of a page when looking at its layout.
			</div>
			<!-- /.comment-text -->
		</div>
		<!-- /.box-comment -->
		<div class="box-comment">
			<!-- User p_w_picpath -->
			<img class="img-circle img-sm" src="../dist/img/user4-128x128.jpg" alt="User Image">

			<div class="comment-text">
						<span class="username">
							Luna Stark
							<span class="text-muted pull-right">8:03 PM Today</span>
						</span><!-- /.username -->
				It is a long established fact that a reader will be distracted
				by the readable content of a page when looking at its layout.
			</div>
			<!-- /.comment-text -->
		</div>
		<!-- /.box-comment -->
	</div>
	<!-- /.box-footer -->
	<div class="box-footer">
		<form action="#" method="post">
			<img class="img-responsive img-circle img-sm" src="../dist/img/user4-128x128.jpg" alt="Alt Text">
			<!-- .img-push is used to add margin to elements next to floating p_w_picpaths -->
			<div class="img-push">
				<input type="text" class="form-control input-sm" placeholder="Press enter to post comment">
			</div>
		</form>
	</div>
	<!-- /.box-footer -->
</div>

wKiom1jHoc2ziZOGAANtCAT1IB0179.png-wh_50




下面是总结的一小段可能出现的代码,不必看,也可以参考。

1、信息框info-box :
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/CSS/ionicons.min.css">
	<div class="row">
		<div class="col-md-3 col-sm-6 col-xs-12">
			<div class="info-box">
				<span class="info-box-icon bg-aqua"><i class="ion ion-iOS-gear-outline"></i></span>

				<div class="info-box-content">
					<span class="info-box-text">CPU Traffic</span>
					<span class="info-box-number">90<small>%</small></span>
				</div>
				<!-- /.info-box-content -->
			</div>
			<!-- /.info-box -->
		</div>
		<!-- /.col -->
	</div>
	
2、常用框
<div class="row">
	<div class="col-md-12">
		<div class="box box-success box-warning box-danger box-info  box-default box-primary">
			<div class="box-header with-border">
				<h3 class="box-title">名称</h3>
				<div class="box-tools pull-right">
					<span data-toggle="tooltip" title="3 New Messages" class="badge bg-yellow">3</span>
					<span class="label label-danger">8 New Members</span>
					<button type="button" class="btn btn-box-tool" data-widget="chat-pane-toggle">
                      <i class="fa fa-comments"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
					</button>
					<div class="btn-group">
						<button type="button" class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown">
							<i class="fa fa-wrench"></i></button>
								<ul class="dropdown-menu" role="menu">
									<li><a href="#">1</a></li>
									<li><a href="#">2</a></li>
									<li><a href="#">3</a></li>
									<li class="divider"></li>
									<li><a href="#">4</a></li>
								</ul>
					</div>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<div class="box-body">
				<div class="row">
					<div class="col-md-8">
						<p class="text-center">
							<strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
						</p>
					</div>
					<!-- /.col -->
				</div>
				<!-- /.row -->
			</div>
			<!-- ./box-body -->
			<div class="box-footer">
				<div class="row">
					<div class="col-sm-3 col-xs-6">
						<div class="description-block border-right">
							<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 17%</span>
						</div>
						<!-- /.description-block -->
					</div>
				</div>
				<!-- /.row -->
			</div>
			<!-- /.box-footer -->
		</div>
		<!-- /.box -->
	</div>
	<!-- /.col -->
</div>

3、对话框
<!-- 对话框只需要在box-body中更换成这个 -->
<div class="direct-chat-messages">
</div>
<!--/.direct-chat-messages-->
 <div class="direct-chat-msg">
		<div class="direct-chat-info clearfix">
			<span class="direct-chat-name pull-left">Alexander Pierce</span>
			<span class="direct-chat-timestamp pull-right">23 Jan 2:00 pm</span>
		</div>
		<!-- /.direct-chat-info -->
		<img class="direct-chat-img" src="dist/img/user1-128x128.jpg" alt="message user p_w_picpath"><!-- /.direct-chat-img -->
		<div class="direct-chat-text">
			Is this template really for free? That's unbelievable!
		</div>
		<!-- /.direct-chat-text -->
	</div>
	<!-- /.direct-chat-msg -->

	<!-- Message to the right -->
	<div class="direct-chat-msg right">
		<div class="direct-chat-info clearfix">
			<span class="direct-chat-name pull-right">Sarah Bullock</span>
			<span class="direct-chat-timestamp pull-left">23 Jan 2:05 pm</span>
		</div>
		<!-- /.direct-chat-info -->
		<img class="direct-chat-img" src="dist/img/user3-128x128.jpg" alt="message user p_w_picpath"><!-- /.direct-chat-img -->
		<div class="direct-chat-text">
			You better believe it!
		</div>
		<!-- /.direct-chat-text -->
	</div>
<!-- Contacts are loaded here -->
<div class="direct-chat-contacts">
123
<!-- /.contatcts-list -->
</div>	
	
	
4、信息框2
<div class="info-box bg-yellow bg-green bg-red bg-aqua">
	<span class="info-box-icon"><i class="ion ion-ios-pricetag-outline"></i></span>

	<div class="info-box-content">
		<span class="info-box-text">Inventory</span>
		<span class="info-box-number">5,200</span>

		<div class="progress">
			<div class="progress-bar" style="width: 50%"></div>
		</div>
				<span class="progress-description">
					50% Increase in 30 Days
				</span>
	</div>
	<!-- /.info-box-content -->
</div>	























--结束END--

本文标题: adminLTE 教程 -3 box

本文链接: https://www.lsjlt.com/news/192422.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • adminLTE 教程 -3 box
    adminLTE的box算是它样式中最主要的部分,下面的连接是演示地址,这里面基本上列举出来所有的样式和插件,目的就是希望用户可以在这一个网站中,全面的了解adminLTE。并且,更重要的是,我们可以直接在F12的调试窗口,选中我们想要的样...
    99+
    2023-01-31
    教程 adminLTE box
  • Redis教程(3)
    2)hashRedis hash是一个string类型的field和value的映射表.它的添加、删除操作都是O(1)(平均)。hash特别适合用于存储对象。相较于将对象的每个字段存成单个string类型。将一个对象存储在hash类型中会占...
    99+
    2023-01-31
    教程 Redis
  • GNS-3教程
    [url]www.netemu.cn[/url]网络模拟器致力于网络模拟器的应用。本站同时发布GNS-3 的汉化版本日期:07.06.09汉化人员:错字小王子,小漏整理:小漏时间仓促如有错误请发邮件[email]netemu@gmail.c...
    99+
    2023-01-31
    教程 GNS
  • Python 3 教程
    Python 3 教程 Python 的 3.0 版本,常被称为 Python 3000,或简称 Py3k。相对于 Python 的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python 3.0 在设计的时候没有考...
    99+
    2017-08-12
    Python 3 教程
  • Cassandra教程(3)---- 架
    架构简介    Cassandra是设计用于跨多节点方式处理大数据,它没有单点故障;这种架构设计之初就考虑到了系统和硬件故障。Cassandra地址发生失效问题,通过采用跨节点的分布式系统,将数据分布在集群中的所有节点上解决。每个节点使用P...
    99+
    2023-01-31
    教程 Cassandra
  • Active Directory教程3
    Active Directory 的早期阶段,企业常常在用户可能登录的每个站点均部署域控制器。例如,银行通常在每个支行都安装 DC。其中的逻辑是每个支行的用户都能登录并访问本地网络资源,即使 WAN 失效也能如此。本文是《Active Di...
    99+
    2023-01-31
    教程 Active Directory
  • linux入门教程(3)
    (文:flynng)  3.4 进程管理  Linux是一个多用户多任务的操作系统。多用户是指多个用户可以在同一时间使用计算机系统;多任务是指Linux可以同时执行几个任务,它可以在还未执行完一个任务时又执行另一项任务。  在Linux系统...
    99+
    2023-01-31
    入门教程 linux
  • springmvc经典教程(3)
    springmvc史上最好教程(2)springmvc史上最好教程(1)1.1 需求使用springmvc+mybatis架构实现商品信息维护。  1.2 商品修改1.2.1 dao使用逆向工程自动生成的代码:ItemsMapper.Jav...
    99+
    2023-01-31
    教程 经典 springmvc
  • JavaFX与Jfoenix教程3
    1.升级上一节的Hello World,上一节的样式都是通过代码来实现,本章将通过CSS实现样式编写,引用CSS样式分为行内CSS样式和外部CSS样式,本次教程使用行内CSS样式来实现,实现代码如下package com.dengyunsh...
    99+
    2023-01-31
    教程 JavaFX Jfoenix
  • ***测试实践教程3
    特别声明:本文仅供在校大学生个人学习信息安全知识,不可用于其他用途。转载本文须声明来源,并引述本声明。网络数据分析利器——Wireshark 1我们从Wireshark的安装开始讲起……1.0 安装WiresharkWireshark提供了...
    99+
    2023-01-31
    测试 教程
  • 微信开发教程(3)
    因为微信现在可以开通自定义菜单,很多人都不知道如何创建自定义菜单。我今天来分享一下,自定菜单如何创建! 下面直接看代码:<php //根据申请到的appid要获取access_toke值,https://api.weixin...
    99+
    2023-01-31
    教程
  • Python 3 | 菜鸟教程 (一)
    目录 一、Python3 简介 二、Python 发展历史 三、Python 特点 (一)易于学习 (二)易于阅读 (三)易于维护 (四)一个广泛的标准库 (五)互动模式 (六)可移植 (七)可扩展 (八)数据库 (九)GUI编程 (十)可...
    99+
    2023-08-31
    python 开发语言 编辑器 ide linux
  • NumPy 超详细教程(3):ndarr
     系列文章地址 NumPy 最详细教程(1):NumPy 数组 NumPy 超详细教程(2):数据类型 NumPy 超详细教程(3):ndarray 的内部机理及高级迭代   ndarray 对象的内部机理 在前面的内容中,我们已经...
    99+
    2023-01-31
    教程 详细 NumPy
  • php面向对象教程3
    5.如何实例化对象我们上面说过面向对象程序的单位就是对象,但对象又是通过类的实例化出来的,既然我们类会声明了,下一步就是实例化对象了。当定义好类后,我们使用new 关键字来生成一个对象。$对象名称= new 类名称();<phpcla...
    99+
    2023-01-31
    面向对象 教程 php
  • unix基础教程3 通信
    1、内部通信系统 2、外部通信系统 3、即时通讯 1)交谈命令write(须在线) write username [terminal] $write npp 终端号 (多人同时登录时)...
    99+
    2023-01-31
    基础教程 通信 unix
  • Eclipse安装教程(2023年,3月)
    一、Eclipse下载 进入eclipse官网 官网地址:https://www.eclipse.org/ 点击【Download】 ,进入eclispe下载页面,点击【Download Packages】下载压缩包。(eclipse还...
    99+
    2023-08-31
    eclipse java ide
  • django开发傻瓜教程-3-celer
    Ref: https://www.jianshu.com/p/6f8576a37a3e https://blog.csdn.net/Demo_3/article/details/78119951 https://blog.csdn.net...
    99+
    2023-01-30
    傻瓜 教程 django
  • PyCharm安装教程(2023年,3月)
    下载PyCharm之前需要准备下载Python 链接:Python安装教程 一、PyCharm下载 进入JetBrains官网: 官网地址:https://www.jetbrains.com/ 点击【Developer Tools】 开发...
    99+
    2023-08-31
    pycharm python ide
  • IntelliJ IDEA安装教程(2023年,3月)
    使用IntelliJ IDEA写java程序需要配置jdk 链接:JDK安装教程 一、IntelliJ IDEA下载 进入官网 官网地址:https://www.jetbrains.com/ ​  2、点击【Developer Tools】...
    99+
    2023-09-12
    intellij-idea java mybatis
  • Python爬虫入门教程 3-100 美
    美空网数据----简介 从今天开始,我们尝试用2篇博客的内容量,搞定一个网站叫做“美空网”网址为:http://www.moko.cc/, 这个网站我分析了一下,我们要爬取的图片在 下面这个网址 http://www.moko.cc/p...
    99+
    2023-01-30
    爬虫 入门教程 Python
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作