zoukankan      html  css  js  c++  java
  • IE, FireFox, Opera 浏览器支持CSS实现Alpha透明的方法 兼容问题

    一:要解决的问题时:在ie6-ie11下兼容下面透明上传文件button的效果。

    实现方式通过滤镜实现。

    二:效果图例如以下:

    三:代码:

    样式:

    .file2 {
    		position: absolute;
    		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";/*ie 8*/
    		filter: alpha(opacity=0);/*ie 5-7*/
    		opacity:.0;/*opera9.0+,firefox1.5+,safari,chrome*/
    		 30px;
    		height: 20px;
    		line-height: 20px;
    		cursor: pointer;
    		padding: 0;
    		overflow: hidden;
    		padding-top: 0px;
    	}
    <pre class="html" name="code"><em style="30px; height:20px; line-height:20px;overflow:hidden; font-style:normal;">
       <input type="file" class="file2" id="filep_${item.DM}" style="border:none;" onchange="upload(this,'${item.DM}');" />
       <a href="javascript:void(0)" >上传</a>
    </em>
    <font style="color: gray;">删除</font>

    
    

    
  • 相关阅读:
    Connected Graph
    Gerald and Giant Chess
    [NOI2009]诗人小G
    四边形不等式小结
    [NOI2007]货币兑换
    Cats Transport
    Cut the Sequence
    Fence
    The Battle of Chibi
    [Usaco2005 Dec]Cleaning Shifts
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/5167298.html
Copyright © 2011-2022 走看看