随笔分类 - html/css
摘要:怪异盒模型 box-sizing:content-box 标准盒模型 总宽/高度=width+左右/上下padding+左右/上下border box-sizing:border-box 怪异盒模型(IE盒模型) 总宽/高度=width(包含padding和border) 弹性盒 特点:1、在弹性盒
阅读全文
摘要:rem和vw布局主要都是为了更好地适配移动端,毕竟手机的型号太多了。 在进行移动端设计的时候,首先要引入一个meta标签。(禁止用户缩放) 1 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-sc
阅读全文
摘要:1. cursor:auto; 默认 2. cursor:crosshair; 加号 3. cursor:text; 文本竖标 4. cursor:wait; 等待 5. cursor:help; 帮助 6. cursor:progress; 过程 7. cursor:inherit; 继承 8.
阅读全文
摘要:1 white-space: nowrap; /*文本不换行,单行显示*/ 2 overflow: hidden; /*溢出内容隐藏*/ 3 text-overflow: ellipsis; /*省略号显示,默认为clip*/ 浏览器运行效果:
阅读全文
浙公网安备 33010602011771号