... <input type='text' name='textfield' id='textfield' class='txt' /> <input type='button' class='btn' value='浏览...' /> <input type="file" name="fileField" class="file" id="fileField" size="28" onchange="document.getElementById('textfield').value=this.value" /> <input type="submit" name="submit" class="btn" value="上传" /> ...
css样式
...
.file-box{ position:relative;340px}
.txt{ height:22px; border:1px solid #cdcdcd; 180px;}
.btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; 70px;}
.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;260px }
...
效果图