常用到的html页面布局和组件: 自己用
1. 用div当作圆
<div style="border: 1px solid blue;height: 100px; width: 100px; border-radius: 200px">div圆圈</div>
2. 用bootstrap实现的表格: 标题固定,表内容可滚动
CSS:
.single-table-wrapper{
height: 85vh;
width: %;
margin-bottom: 0px;
border: 1px solid #ddd;
}
.single-table-wrapper tbody{
height: 80vh;
overflow-y:auto;
width: %;
}
.single-table-wrapper thead,
.single-table-wrapper tr,
.single-table-wrapper th,
.single-table-wrapper tbody,
.single-table-wrapper tr,
.single-table-wrapper td{
display:block;
}
.single-table-wrapper tbody td{
float:left;
}
.single-table-wrapper thead tr th{
float:left;
}
HTML:
<div class="single-table-wrapper"> <table class="table table-hover">
<thead>
<tr>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">序号</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
<th class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">标题1</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">允许搭乘</th>
<th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">状态</th>
<th class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ,13 ,14, 15]">
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-2 col-sm-2 col-mg-2 col-lg-2"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1"></td>
<td class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">
<a class="btn btn-primary btn-xs">查看</a>
</td>
</tr> </tbody>
</table> </div>
常用到的html页面布局和组件: 自己用的更多相关文章
- 13Flutter页面布局 Wrap组件
/* Flutter页面布局Wrap组件: Wrap可以实现流布局,单行的Wrap跟Row表现几乎一致,单列的Wrap则跟Row表现几乎一致. 但Row与Column都是单行单列的.Wrap则突破了这 ...
- 页面布局 Wrap 组件 和 RaisedButton按钮
一.RaisedButton 定义一个按钮 Flutter 中通过 RaisedButton 定义一个按钮.RaisedButton 里面有很多的参数,只讲简单的进行使用. return Raised ...
- 046——VUE中组件之使用动态组件灵活设置页面布局
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- 11Flutter页面布局 Stack层叠组件 Stack与Align Stack与Positioned实现定位布局
/* Flutter 页面布局 Stack层叠组件: Stack与Align Stack与Positioned实现定位布局: Flutter Stack组件: Stack表示堆得意思,我们可以用Sta ...
- 10Flutter页面布局 Padding Row Column Expanded组件详解:
Padding组件: main.dart import 'package:flutter/material.dart'; import 'res/listData.dart'; /* flutter页 ...
- 【Flutter学习】页面布局之基础布局组件
一,概述 Flutter中拥有30多种预定义的布局widget,常用的有Container.Padding.Center.Flex.Row.Colum.ListView.GridView.按照< ...
- 《React后台管理系统实战 :二》antd左导航:cmd批量创建子/目录、用antd进行页面布局、分离左导航为单独组件、子路由、动态写左导航、css样式相对陷阱
一.admin页面布局及路由创建 0)cmd批量创建目录及子目录 //创建各个目录,及charts和子目录bar md home category product role user charts\b ...
- css书写规范 & 页面布局规范 &常用案例经验总结
CSS 属性书写顺序(重点) 建议遵循以下顺序: 布局定位属性:display / position / float / clear / visibility / overflow(建议 displa ...
- 页面布局常用,让子级div排排坐
画页面的时候经常遇到页面布局的问题,父级div包裹多个子div很常见,代码如下: <div> <div style='width:100px;height: 100px;backgr ...
随机推荐
- docker 数据卷之进阶篇
笔者在<Docker 基础 : 数据管理>一文中介绍了 docker 数据卷(volume) 的基本用法.随着使用的深入,笔者对 docker 数据卷的理解与认识也在不断的增强.本文将在前 ...
- TCP/IP三次握手四次挥手
本文通过图来梳理TCP-IP协议相关知识.TCP通信过程包括三个步骤:建立TCP连接通道,传输数据,断开TCP连接通道.如图所示,给出了TCP通信过程的示意图. TCP 三次握手四次挥手 主要包括三部 ...
- ReportView动态加载带参数的RDCL文件
在vs里新建一个winform程序"ReportViewTest",在form1中添加一个reportView控件,from1的load事件如下: private void For ...
- Photoshop 样式的角度/高度选择器控件
Conmajia © 2012 Updated on Mar. 5, 2018 简介 Adobe Photoshop有两个非常专业的控件:角度选择器和角度与高度选择器,如图1所示. 图1 两种控件外观 ...
- 面试为什么需要了解JVM
匠心零度 转载请注明原创出处,谢谢! 说在前面 如果你经常注意面试题,你会发现现在面试题多多少少会含有jvm相关的面试题,之前也把一些jvm面试题汇总了下:面试题系列一,那么为什么现在面试需要了解或者 ...
- html input密码显示为*号
<!DOCTYPE html> <html encoding="utf-8"> <head> <style> *{margin:0; ...
- Caffe︱构建lmdb数据集、binaryproto均值文件及各类难辨的文件路径名设置细解
Lmdb生成的过程简述 1.整理并约束尺寸,文件夹.图片放在不同的文件夹之下,注意图片的size需要规约到统一的格式,不然计算均值文件的时候会报错. 2.将内容生成列表放入txt文件中.两个txt文件 ...
- 【mysql】mysql内置函数
mysql常用内置函数 1.mysql字符串函数 contact 字符串连接函数 mysql>select contact("he",'llo');# hello lcase ...
- ubuntu14.04 64位 安装eclipse
ubuntu14.04 64位 安装eclipse 1 在官网上下载eclipse http://www.eclipse.org/downloads/下载eclipse-jee-luna-SR1-li ...
- Django学习-4-request获取数据
app下views.py 获取前端HTML数据的一些方法 def func(request): # request.me ...