css
Hailee7
老变态
展开
-
div合并边框问题
设置margin:-1px;原创 2020-12-09 14:32:23 · 1265 阅读 · 0 评论 -
css中writing-mode文字纵向显示方向
光写第一句没用,要加上第二句,为什么?还没时间研究。writing-mode:vertical-rl;writing-mode: tb-rl;原创 2020-08-13 16:13:52 · 441 阅读 · 0 评论 -
vue获取dom css样式
// 获取高度值 (内容高+padding+边框)let height= this.refs.getheight.offsetHeight;//获取元素样式值(存在单位)letheight=window.getComputedStyle(this.refs.getheight.offsetHeight; // 获取元素样式值 (存在单位)let height = window.getComputedStyle(this.refs.getheight.offsetHeight;//获取元素样式值(存在单原创 2020-07-27 11:28:43 · 651 阅读 · 0 评论 -
css背景条纹样式等
div{width:200px;height:200px;display:inline-block;}.h-line{background:linear-gradient(greenyellow 30%,transparent 0);background-size:100% 30px;}.v-line{background:linear-gradient(to right,greenyellow 50%, pink 0);background-size:20px 10...原创 2020-07-24 11:58:06 · 244 阅读 · 0 评论 -
Grid布局笔记
Grid布局flex是一维布局,只能在一条直线上放置内容区块。Grid是二维布局,可以将内容区块放置在任何地方。并非取代flexbox二者可以配合使用Grid最重要的三个概念:网格容器、网格项、网格区域网格线为虚拟概念网格线有多少与网格项没有直接的关联网格轨道(Grid Track)两个相邻的网格线之间为网格轨道Grid Cell(网格单元)两个相邻的列网格线和两个相邻的行网格线组...原创 2020-04-09 22:02:47 · 169 阅读 · 0 评论