请求数据加载之后进行分页 1.使用npm安装 npm install element-ui -S 2.在main.js中引用 import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue. ...
分类:
其他好文 时间:
2020-07-10 18:57:34
阅读次数:
76
1、奇数行 $('.q-t-list-01 a:odd').css( 'background-color', '#f2f2f2') 2、偶数行 $('.q-t-list-01 a:even').css( 'background-color', '#eee') 效果图 ...
分类:
Web程序 时间:
2020-07-10 17:23:44
阅读次数:
59
关于Nuxt的css嵌入到html代码中的问题,效果如下: 解决方案其实很简单:在nuxt.config.js文件中的build对象添加extractCSS: { allChunks: true },extractCSS是将内嵌的css提取到外部,allChunks代表所有的都执行,代码如下: bu ...
分类:
Web程序 时间:
2020-07-10 16:51:27
阅读次数:
89
1.通过关联的class样式属性写好css样式 .anim-order{ animation-duration: 500ms; animation-name: addInOrder; animation-timing-function: ease-in-out; } .anim-car{ anima ...
分类:
其他好文 时间:
2020-07-10 15:08:02
阅读次数:
65
1、配置对全部资源的放行 <mvc:default-servlet-handler/> 2、对指定目录下的资源放行 <mvc:resources location="/images/" mapping="/images/**"/> <mvc:resources location="/css/" ma ...
分类:
编程语言 时间:
2020-07-10 13:34:14
阅读次数:
74
首先将字体文件放到项目中,然后建一个css文件配置 @font-face { font-family: 'yahei'; //重命名字体名 src: url('msyh.ttf'); //引入字体 font-weight: normal; font-style: normal;}再在main.js中 ...
分类:
其他好文 时间:
2020-07-10 13:17:23
阅读次数:
80
1.grid布局实现(一) .father{ display:grid; align-item:center; justify-items:center; } 2.grid布局实现(二) .father{ display:grid; align-item:center; justify-conten ...
分类:
Web程序 时间:
2020-07-10 13:11:05
阅读次数:
90
虽然放在 DOM 分类里面,但是 CSS OM 并不属于 DOM,而是并行的。仅为方便查找。 document.styleSheets <style title="hello"> a { color: red; } </style> <link rel="stylesheet" title="x" ...
分类:
Web程序 时间:
2020-07-10 12:58:07
阅读次数:
89
一、单行 <div class="div">这是一段中文这是一段中文这是一段中文这是一段中文这是一段中文这是一段中文</div> .div { background-color: green; width: 100px; overflow: hidden; text-overflow: ellips ...
分类:
Web程序 时间:
2020-07-10 12:55:11
阅读次数:
83
CSS层叠性 概念 所谓层叠性是指多种CSS样式的叠加。 是浏览器处理冲突的一个能力,如果一个属性通过两个相同选择器设置到同一个元素上,那么这个时候一个属性就会将另一个属性层叠掉 原则 样式冲突,遵循的原则是就近原则。 那个样式离着结构近,就执行那个样式。 样式不冲突,不会层叠 CSS继承性 概念 ...
分类:
Web程序 时间:
2020-07-10 11:46:34
阅读次数:
67