常用到的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 ...
随机推荐
- OpenStack Ironic 常见问题
whole disk和partition 镜像 whole disk镜像部署可以支持windows,但是不能自定义分区(可以通过cloud-init实现),分区表是做镜像的人确定好的,partitio ...
- SSH服务端配置、优化加速、安全防护
CentOS7自带的SSH服务是OpenSSH中的一个独立守护进程SSHD.由于使用telnet在网络中是明文传输所以用其管理服务器是非常不安全的不安全,SSH协议族可以用来对服务器的管理以及在计算机 ...
- Shell脚本——特殊符号
1. # 井号(pound) 脚本文件运行时,使用的解释器. #!/bin/sh 其他时候表示注释. # This is a comment. 2. ~ 波浪号(tilde) 表示当前用户使用的hom ...
- SQL Server使用侦听器IP访问时遇到"The target principal name is incorrect. Cannot generate SSPI context"
在测试SQL Server 2016 Always On时,在创建侦听器后,在客户端使用SSMS, 可以用侦听器名称访问Always On集群,但是使用侦听器IP访问时遇到"The targ ...
- 读取含有BOM头的文件遇到的问题
需求是读取一个csv文件,然后解析成对应的数据结构.csv必须包含指定的某些列,通过列名header来进行校验. 解析配置文件的方法. public List<QuestionData> ...
- Linux显示cat帮助信息并退出
Linux显示cat帮助信息并退出 youhaidong@youhaidong-ThinkPad-Edge-E545:~$ cat --help 用法:cat [选项]... [文件]... 将[文件 ...
- Linux显示按文件大小降序排列
Linux显示按文件大小降序排列 youhaidong@youhaidong-ThinkPad-Edge-E545:~$ ls -ls 总用量 56 12 -rw-r--r-- 1 youhaidon ...
- struts2的配置文件
struts2的配置文件 1.配置Action的struts.xml 2.配置Struts2有关属性的struts.properties
- JavaScript总结-网页上显示时间
网页上显示时间 代码如下: <TABLE> <TR> <TD><span id="localtime"></span> ...
- dom文档对象模型图