![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
叫我大猫
这个作者很懒,什么都没留下…
展开
-
div同时设置overflow为scroll,和border-radius的时候,4个角显示不全
再包裹一层父级div,把border-radius属性给到父级,再给一个padding即可 <div style="border-radius: 6px; padding: 4px"> <div style="width:200px;height:200px;overflow-y: scroll"> <!-- to do --> </div> </div>...原创 2020-06-20 17:47:26 · 953 阅读 · 0 评论 -
element的table默认滚动感觉是继承的浏览器默认的滚动条,重写一下滚动条样式,让她美美哒
::-webkit-scrollbar{ background-color: #fff; width: 8px; height: 8px;}::-webkit-scrollbar-thumb{ background-color: rgba(0,0,0,.1); border-radius: 6px;}把这个样式放在App.vue中,全局的样式就改变了,这个是谷歌的哦原创 2020-06-03 11:20:52 · 387 阅读 · 0 评论 -
vue 动态class绑定
<h2 :style="{color: dColor, fontSize: dFontSize + 'px'}">今天天气不错</h2><h2 :style="objStyle">今天天气不错</h2><h2 :style="[objStyle1, objStyle2]">今天天气不错</h2>data(){...原创 2020-03-12 18:12:27 · 63 阅读 · 0 评论 -
实现border边框样式渐变和border-radius效果
<div class="content"> <p>demodemo</p> </div> .content{ width:100px; height: 100px;}.content::before{ content: ""; width: 84%; height: 2px; position:...原创 2019-11-07 16:26:55 · 709 阅读 · 0 评论 -
大屏,背景图过大,出现滚动条
``标题``<template> <div class="board"> <img src="../../../../../static/dashboard/boardScreen.jpg" alt=""> </div></template><script> mounted() { ...原创 2019-11-06 17:23:40 · 1068 阅读 · 0 评论