随笔分类 - css
摘要:<style> /* vw等于屏幕视口宽度的1% */ div { background-color: aqua; /* 表示20%的视口宽度 */ width: 20vw; height: 20vw; } </style> </head> <body> <div class="test"></di
阅读全文
摘要:<body> <div class="container"> <div class="row"> <div class="col-lg-3 col-xs-6">1</div> <div class="col-lg-3 col-xs-6">2</div> <div class="col-lg-3 co
阅读全文
摘要:下载文件 起步 · Bootstrap v3 中文文档 | Bootstrap 中文网 (bootcss.com) 引入css <link rel="stylesheet" href="bootstrap/bootstrap-3.4.1-dist/css/bootstrap.min.css"> 引用
阅读全文
摘要:@green:green; @size100:100px; // 安装easy less插件保存less会生成同名css文件 // 计算时有多个单位以第一个单位为主 // 计算空格 // 写为元素加& div{ background-color: @green; font-size: @size10
阅读全文
摘要:屏幕上页面宽度小于500px时将jd.css引入页面中 <link rel="stylesheet" href="jd.css" media="screen and (max-width:500px)">
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<style> div { display: flex; width: 100%; height: 500px; } span { width: 200px; height: 200px; background-color: aquamarine; } span:nth-child(2) { /*
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:<style> section { margin: 0 auto; width: 100%; height: 500px; min-width: 600px; max-width: 1200px; } div:first-child { float: left; width: 50%; height
阅读全文
摘要:<style> /* 定义名称为zhuan的动画 */ @keyframes zhuan { 0% { transform: translate(0, 0); } /* 水平移动 */ 30% { transform: translate(600px, 0); } /* 放大x,y 2倍*/ 50%
阅读全文
摘要:/* 为宽度设置过渡时间2s,延迟1s */ transition: width 2s ease 1s;
阅读全文
摘要:网址 IcoMoon App - Icon Font, SVG, PDF & PNG Generator 文件夹结构 复制style.css文件部分代码到目标html<style>中 @font-face { font-family: 'icomoon'; src: url('fonts/icomo
阅读全文
摘要:em, i { font-style: normal } * { margin: 0; padding: 0 } li { list-style: none } /* 图片后字体垂直于中部位置*/ img { border: 0; vertical-align: middle } /* 鼠标为指针样
阅读全文
摘要:/* inset内部阴影,默认外部 */ box-shadow: 10px 10px 10px 10px greenyellow inset;
阅读全文

浙公网安备 33010602011771号