码迷,mamicode.com
首页 >  
搜索关键字:css specificity    ( 52289个结果
vue中使用element-ui实现分页
请求数据加载之后进行分页 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
jquery 隔行变色
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
NuxtJS处理因css在服务端渲染而增加源代码量,从而影响到SEO的问题
关于Nuxt的css嵌入到html代码中的问题,效果如下: 解决方案其实很简单:在nuxt.config.js文件中的build对象添加extractCSS: { allChunks: true },extractCSS是将内嵌的css提取到外部,allChunks代表所有的都执行,代码如下: bu ...
分类:Web程序   时间:2020-07-10 16:51:27    阅读次数:89
在VUE中实现动画效果 订单收纳 购物车收纳
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
Spring MVC静态资源放行
1、配置对全部资源的放行 <mvc:default-servlet-handler/> 2、对指定目录下的资源放行 <mvc:resources location="/images/" mapping="/images/**"/> <mvc:resources location="/css/" ma ...
分类:编程语言   时间:2020-07-10 13:34:14    阅读次数:74
vue引入外部字体
首先将字体文件放到项目中,然后建一个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
CSS水平垂直居中方式
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
CSS OM
虽然放在 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
css文本超出省略
一、单行 <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样式的叠加。 是浏览器处理冲突的一个能力,如果一个属性通过两个相同选择器设置到同一个元素上,那么这个时候一个属性就会将另一个属性层叠掉 原则 样式冲突,遵循的原则是就近原则。 那个样式离着结构近,就执行那个样式。 样式不冲突,不会层叠 CSS继承性 概念 ...
分类:Web程序   时间:2020-07-10 11:46:34    阅读次数:67
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!