<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Uploadfile</title> <style> *{ margin: 0; padding: 0; } a{ 200px;height: 30px;background-color: blue;display: block;margin: 100px auto;overflow: hidden;position: relative; } input{ font-size: 118px;cursor: pointer;position: absolute;right: 0;top: 0;opacity: 0;filter:alpha(opacity=0); } </style> </head> <body> <a href="#"><input type="file" name="" id="" /></a> </body> </html>