<label class="input">
<input title="浏览文件" type="file" />浏览…
</label>
<style type="text/css">
.input{display: inline-block;
width: 140px;
height: 50px;
line-height: 50px;
text-align: center;
overflow: hidden;
position: relative;
background-color: #00a1cb;
color: #fafafa;
text-shadow:0 -1px 0 rgba(0,0,0,0.25);
border-radius: 1px;
transition:background .3s;
-webkit-transition:background .3s}/*自定义外框样式*/
.input:hover{background-color: #00b5e5}/*鼠标经过样式*/
.input input{opacity: 0;filter:alpha(opacity=0);
font-size: 100px;
position: absolute;
top: 0;
right: 0} /*隐藏默认控件样式*/
</style>
相关文章
- 获取input标签的所有属性
- 【HTML】使用js给input标签增加disabled属性
- 【第1节】ant design select下拉框获取value,label, key和自定义属性
- wordpress自定义菜单高级属性设置
- D:\Software\Keil5\ARM\PACK\Keil\STM32F1xx_DFP\2.1.0\Device\Include\stm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No such file or directory
- JS中使用"data-"开头的属性及data方法实现自定义属性
- JS获取自定义属性data值
- jquery通过attr取html里自定义属性原来这么方便啊
- 在webpack中通过 unplugin-vue-define-options 插件, 实现 在Vue3 setup语法糖中,自定义组件的 name 属性,最后实现组件的全局自动注册,
- Missing input file 的Protocol 报错解决