css
小道士在路上
a rookie
展开
-
element table 列在IE下没有撑满100%
.el-table__header{ width: 100% !important; }.el-table__body{ width: 100% !important; }原创 2020-09-29 15:55:32 · 1022 阅读 · 0 评论 -
css 文本溢出显示省略号
webkit内核下.content { overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical; }兼容其他浏览器.content {font-size: 14px;color: #4A4A4A;overflow: hidden;line-height: 26px;position: relative;height: 45原创 2020-05-27 16:06:18 · 109 阅读 · 0 评论 -
element-ui中table组件 对行设置高度使其不自动换行避免撑开高度
.cell{max-height: 23px !important;overflow: hidden; !important;} 一句搞定 高度 23px一行 看情况而定 overflow auto 可出现滚动条原创 2019-07-25 08:44:50 · 6103 阅读 · 0 评论 -
scss转css 以及hotcss使用
hotcss官网:http://imochen.github.io/hotcss/用法引用:<script src="/path/to/hotcss.js"></script>根据页面渲染机制,hotcss.js必须在其他JS加载前加载,万不可异步加载。如果可以,你应将hotcss.js的内容以内嵌的方式写到标签里面进行加载,并且保证在其他js文件之前。为了避免不...原创 2019-07-27 11:35:58 · 1013 阅读 · 0 评论 -
媒体查询
两种写法一、写在style中<style> @media screen and(max-width:320px){ /* 只有在屏幕的最大宽度小于等于320px的时候 这里的代码才生效 */ } </style>二、写在link中<link src="aaaaaaaa.css" media="screen and(max-width:...原创 2019-07-27 10:56:11 · 59 阅读 · 0 评论 -
iframe自动撑开高度
<html><head><style>body {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;overflow: hidden;}</style></head> <body><iframe src='" ht...转载 2019-08-07 13:56:01 · 13249 阅读 · 4 评论