前端问题===遇到的有效解决

前端问题===遇到的有效解决

1.使用swiper时踩过的坑(解决一个网页使用多个swiper冲突问题)


解决:可像css防止样式冲突那样,前面多加一个类区分
在这里插入图片描述
参考文:https://blog.51cto.com/u_15983333/6092596

2.Vue无法访问.env.development定义的变量值问题及解决
原因&解决:官方文档发现定义变量必须以:VUE_APP_XXXX 开头
参考文:https://www.jb51.net/article/272203.htm

/* 屏蔽chrome等浏览器,默认项输入框背景色(浅蓝) */
::v-deep input:-internal-autofill-previewed,
::v-deep input:-internal-autofill-selected {
-webkit-text-fill-color: var(–el-input-text-color, var(–el-text-color-regular));
color: var(–el-input-text-color, var(–el-text-color-regular));
}
::v-deep input:-webkit-autofill,
::v-deep input:-webkit-autofill:hover,
::v-deep input:-webkit-autofill:focus,
::v-deep input:-webkit-autofill:active {
transition: background-color 999999999s !important;
}

  • 8
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值