功能1:基础响应式栅格
float + 百分比宽度
功能2:列偏移
margin
功能3:多种设备不同样式
媒体查询media
功能4:列排序
float设置为right
例子
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="./col.css" />
<link rel="stylesheet" href="./offset.css" />
<style>
* {
padding: 0;
margin: 0;
}
.col-1 {
float: left; width: 8.33%; }
.col-2 {
float: left; width: 16.66%; }
.col-3 {
float: left; width: 25%; }
.col-4 {
float: left; width: 33.33%; }
.col-5 {
float: left; width: 41.66%; }
.col-6 {
float: left; width: 50%; }
.col-8 {
float: left; width: 58.33%; }
.col-9 {
float: left; width: 75%; }
.col-10 {
float: left; width: 83.33%; }
.col-11 {
float