
css
qianduan1020
这个作者很懒,什么都没留下…
展开
-
css单行省略多行省略
一行省略overflow:hidden;text-overflow:ellipsis;//文本溢出显示省略号white-space:nowrap;//文本不会换行多行省略display: -webkit-box;-webkit-line-clamp: 2;overflow: hidden;/* autoprefixer: off /-webkit-box-orient: vertical;/ autoprefixer: on */...原创 2021-03-24 09:27:41 · 125 阅读 · 0 评论 -
css变量
css变量 -----------css自定义变量,用–表示自定义1.可以在data中定义{styleVar:{’–color’:“red”}},vue2:绑定到元素标签的 :style中(:style=“styleVar”),选择器使用 color:var(–color);vue3:绑定到vue组件内<style vars="{styleVar['--color']}">的vars中,选择器使用 color:var(–color)2.也可以在样式中直接定义.parent { /*原创 2021-03-16 15:55:42 · 223 阅读 · 0 评论 -
flex弹性布局的一些属性
注意,设为 Flex 布局以后,子元素的float、clear和vertical-align属性将失效1.容器的属性flex-directionflex-wrapflex-flow:flex-direction flex-wrapjustify-contentaligns-items: 特殊值 baseline | stretchalign-content: 特殊值 stretch2.项目的属性order:0 数值越小,排列越靠前flex-grow:0 项目的放大比例flex-sh原创 2020-09-09 09:41:41 · 163 阅读 · 0 评论