您的位置:首页 > Web前端 > HTML

HTML的file显示优化处理

2015-11-16 13:49 453 查看
<style type="text/css">
input{ vertical-align:middle; margin:0; padding:0}
.file-box{ position:relative;width:540px}
.txt{ height:22px; border:1px solid #cdcdcd; width:180px;}
.btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; width:70px;}
.file{ position:absolute; top:0; right:168px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px }
</style>

<div class="file-box">
<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='text' name='textfield' id='textfield' class='txt' />
<input type="button" class="btn" value="上传" onclick="send();"/>
</div>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: