摘要:
1、html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>会议 阅读全文
摘要:
以下代码直接复制到vue文件中即可用 一、template代码 <template> <div class="orderIndex"> <div class="orderTop"> <div class="orderSearch"> <div class="searchBox"> <form> <i 阅读全文
摘要:
直接看代码。 1、template中的代码 <ul class="tab" :style="{height: tabheight}"> <li ref="iWidth" v-for="(item,index) in tabList" :key="index" :class="{'on': check 阅读全文
摘要:
一、首先html部分 <div class="avatar"> <img :src="docUrl ? docUrl : default_img" alt /> </div> 二、在JS中,根据请求回来的数据是null:{}或者有数据来判断头像显示,并引入本地静态图片 <script> export 阅读全文
摘要:
一、关于js常用的代码片段 { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add com 阅读全文
摘要:
例一、使用混合mixins中的变量来定义一个n行文本溢出隐藏的公用样式。 1、创建mixins.scss文件 //文本n行溢出隐藏 @mixin ellipsisBasic($clamp:2) { overflow: hidden; text-overflow: ellipsis; display: 阅读全文
摘要:
打包之前,在vue.config.js中配置:publickPath 而且,public文件夹下的index.html引用reset.css可试用以下方式: <link rel="stylesheet" href="<%= BASE_URL %>css/reset.css"> 再执行npm run 阅读全文
摘要:
就像这种情况,经过多番请教跟尝试,找到一个能解决这个问题的方法,但可能有点笨重。就是在当前弹框里,设置offset的值,里边的值可以随意写,然后再下边给弹框追加一个样式即可。 阅读全文
摘要:
参考网址: https://www.cnblogs.com/pingfan1990/p/5447404.html https://www.cnblogs.com/liangshaojiang/p/9013912.html 此段代码过于灵敏~不推荐使用 阅读全文