zoukankan      html  css  js  c++  java
  • 修改 上传图片按钮input-file样式。。

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title></title>
    <style type="text/css">
    .filebox {100px;height:40px;display:inline-block;zoom:1;position:relative;}
    .filebox .file {100%;height:120%;position:absolute;top:-9%;left:-10%;opacity:0;filter:alpha(opacity:0);font-size:130%;cursor:pointer;}
    .filebox .btn {100%;height:40px;display:block;border:none;background-color:#f30;color:#fff;text-align:center;line-height:40px;font-size:14px;font-weight:bold;}
    .filebox:hover .btn {background-color:#f60;}
    </style>
    </head>
    
    <body>
    
    
    <a class="filebox">
        <input type="file" name="" id="" class="file" />
         <input class="btn" type="button" value="选择图片"/>
    </a>
    
    这个是文字
    </body>
    </html>
  • 相关阅读:
    ArrayList和Vector的比较
    ExtJs与jQuery的比较
    列表类型的内建函数
    序列类型函数
    SQL函数
    HTTP状态码
    序列切片
    数值运算
    数值类型转换
    Python中is和==的区别
  • 原文地址:https://www.cnblogs.com/huanlei/p/3338622.html
Copyright © 2011-2022 走看看