首页 > Web开发 > 详细

html file 表单样式(css过滤器实现)

时间:2016-06-07 12:44:14      阅读:267      评论:0      收藏:0      [点我收藏+]
...
<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;width:340px} 
.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:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px } 
...

 

效果图

技术分享

html file 表单样式(css过滤器实现)

原文:http://www.cnblogs.com/go4mi/p/5566440.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!