<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"> <br/> <style> # ui-upload-holder {position: relative; width: 60px; height: 35px; border: 1px solid silver; overflow: hidden;} # ui-upload-input {position: absolute; top: 0px; right: 0px; height: 100%; cursor: pointer; opacity: 0; filter: alpha (opacity: 0); z-index: 999;} # ui-upload-txt {position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; line-height: 35px; text-align: center ;}# ui-upload-filepath {position: relative; border: 1px solid silver; width: 150px; height: 35px; overflow: hidden; float: left ;}# ui-upload-filepathtxt {position: absolute; top: 0px; left: 0px; width: 100%; height: 35px; border: 0px; line-height: 35px ;}. uploadlay {margin: 200px; border: 1px green solid; width: 300px; height: 200px; padding: 10px ;} </style> <input type = "text" id = "ui-upload-filepathtxt" class = "filepathtxt"> upload <p> <input type = "file" id =" ui-upload-input "name =" myfile "> <p>