elementUI去掉input上下按钮
发表于|更新于
|浏览量:
快乐就像香水,不是泼在别人身上,而是洒在自己身上。——拉尔夫·沃尔多·爱默生
我们使用el-input当type为number时

会出现右边这种箭头,影响美观
我们可以使用样式穿透
1 | <el-input type="number"></el-input> |
1 | /deep/ input::-webkit-inner-spin-button { |
然后就可以去掉这两个箭头啦

相关推荐
2022-08-05
Navigator.clipboard
人类侥幸拥有了智慧,就应该善用它。——王小波 惯例,MDN:https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/clipboard 注意该API只能在https或者本地开发环境生效 剪贴板 Clipboard API 为 Navigator 接口添加了只读属性 clipboard,该属性返回一个可以读写剪切板内容的 Clipboard 对象。 在 Web 应用中,剪切板 API 可用于实现剪切、复制、粘贴的功能。 只有在用户事先授予网站或应用对剪切板的访问许可之后,才能使用异步剪切板读写方法。许可操作必须通过取得权限 Permissions API 的 "clipboard-read" 和/或 "clipboard-write" 项获得。 我们来写一段代码: 123456789<body> <div class="cliptext"></div> <script> ...
2025-02-18
scopedb官网首页
我来到这个世界,为了看看太阳和蓝色的地平线。——《城门开》 https://github.com/scopedb/scopedb-site/pull/32 最近忙着给scopedb做了一个最简单的官网首页 这里说到一些细节吧,首先是适配移动端或者说小尺寸屏幕,这里在没有移动端对应UI设计图的情况下,我们采取pc的布局,因此字体单位使用的vw 然后是这张图片,未来可能会改为带动画的,效果会比较惊艳和抢眼 首页tsx如下 123456789101112131415161718192021222324252627282930313233343536373839import React from "react";import styles from './index.module.css';import Layout from "@theme/Layout";import clsx from "clsx";function HomepageBanner(): React.JSX.Element ...
2022-12-27
hexo主题集成pug
你问人问题,她若答非所问,便已是答了,无需再问。——木心 文档:https://hexo.io/zh-cn/docs/themes 先创建hexo项目 1hexo init simple-hexo 然后到themes新建一个主题文件夹 12cd .\simple-hexo\themes\mkdir simple-theme 修改外部_config.yml的theme 1theme: simple-theme 外部执行一下hexo s启动项目试试 打开localhost:4000 因为我们什么都没写,所以是白屏 新建一个layout目录,下面放一个index.pug 1.container Hello World 发现我们的pug代码并未渲染 这是因为我们没有安装pug插件导致的 到主目录执行 1cnpm i hexo-renderer-pug pug元素成功渲染 好了,接下来你可以编写你自己的主题啦!
2020-06-30
jQuery的ajax
今天公司实习生问我jQuery的ajax怎么写,这玩意不是很简单吗 12345678910111213$.ajax({ url: "/cowBeer", //url method: "post", //请求方式 contentType: "application/json", //参数类型 data: JSON.stringify({ //这里面是参数 "name":"cowBeer" }), success: function (res) { console.log(res); //处理返回的数据 }, error: function (res) { //错误处...
2024-06-23
apache-website-template
真正的人生,只有在经过艰难卓绝的斗争之后才能实现。——塞涅卡 这个项目 https://github.com/apache/apache-website-template 包含文档和模板,可帮助您的项目构建遵循所有必需的 Apache 网站政策的网站 Apache Website TemplateThis project contains documents and templates to help your project build a website that follows all the required Apache Website Policies. Docusaurus-based template Jekyll-based template Pelican-based template For policies and infrastructure: Managing your project website Release download pages for projects Privacy policy for project website...
2022-06-27
vue2配置vite
天可补,海可填,南山可移。日月既往,不可复追。——曾国藩 本篇博客针对新vue2项目,老项目就先不说了哈哈(坑太多) 首先新建一个vue2项目 1vue create simple-vue2-vite 选择Default ([Vue 2] babel, eslint) 1234567891011success Saved lockfile.Done in 3.92s.⚓ Running completion hooks...📄 Generating README.md...🎉 Successfully created project simple-vue2-vite.👉 Get started with the following commands: $ cd simple-vue2-vite $ yarn serve 安装完毕后我们进入,执行 12cd simple-vue2-viteyarn serve 可以看到正常运行: 我们首先安装vite 1pnpm i -D vite vite-plugin-vue2 根目录新建一个vite.config....
