摘要: 一、区别 1. 在CSS2中,伪类和伪元素都用一个冒号来表示: ,而在CSS3中,伪类是一个冒号: ,伪元素是两个冒号:: 。 如:伪类 → :active ;伪元素 → ::before 为了一些兼容性问题,有的时候会都使用一个: 表示。 2. 一个css选择符可以有很多伪类,但只能有一个伪元素。 阅读全文
posted @ 2021-02-06 15:12 沐夏52Hz 阅读(175) 评论(0) 推荐(0)
摘要: { title: '序号', dataIndex: 'index', key: 'index', align: 'center', width: 50, customRender: (text,record,index) => `${index+1}`, }, 使用customRender函数来渲染 阅读全文
posted @ 2021-01-06 14:31 沐夏52Hz 阅读(9735) 评论(0) 推荐(0)
摘要: 1. 单行文本溢出 overflow:hidden; //超出限定的宽度就隐藏内容 white-space: nowrap; //文字在一行显示不能换行 text-overflow: ellipsis; //显示省略符号来代表被修剪的文本 2. 多行文本溢出 overflow: hidden; // 阅读全文
posted @ 2020-12-21 17:06 沐夏52Hz 阅读(164) 评论(0) 推荐(0)
摘要: 在公共组件或表格等公用的东西中使用到了自定义,如:antd table中的customRender,其便不受公共样式的控制,需要根据自己的需求对样式重新编写。 customRender: (text, record) =>{ let value; try { value = record.remar 阅读全文
posted @ 2020-12-21 10:21 沐夏52Hz 阅读(100) 评论(0) 推荐(0)
摘要: int a,b,t; for(a=3,b=0; !a==b; a--,b++) if(a>b) { t = a; a = b; b = t; } printf("%d,%d\n", a,b); 输出结果为-1,4。 因为:若for语句后带多个表达式,但是没有包围,则for后面的第一个表达式属于for 阅读全文
posted @ 2020-12-16 14:50 沐夏52Hz 阅读(327) 评论(0) 推荐(0)
摘要: 【在VUE中对样式的设置】 一、class样式 <style> .red { color: red; } .thin{ font-weight: 200; /* 字体细瘦 */ } .active { letter-spacing: 0.5em; /* 字符间隔 */ /* word-spacing 阅读全文
posted @ 2020-10-14 10:17 沐夏52Hz 阅读(230) 评论(0) 推荐(0)