求助,浏览器兼容问题。

在ie中表单的用户图标密码图标不显示,请问怎么解决?

图片描述
图片描述
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0064)http://www.17sucai.com/preview/137615/2015-01-15/demo/index.html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><HTML
xmlns="http://www.w3.org/1999/xhtml"><HEAD><META content="IE=11.0000"
http-equiv="X-UA-Compatible">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录页面</title>
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<style>
body{

background: #ebebeb;
font-family:"Microsoft YaHei";
color: #222;
font-size: 12px;

}
*{padding: 0px;margin: 0px;}
.top_div{

background: #6ad4ee;
width: 100%;
height: 400px;
position:relative;
z-index:-10;

}
.wenhua{

display: block;
width: 190px;
font-size: 29px;
position: absolute;
color: #FFF;
left: -7px;
top: -213px;
width: 415px;
     }

.wenhua1{

display: block;
width: 190px;
font-size: 15px;
position: absolute;
color: #FFF;
left: -6px;
top: -178px;
width: 415px;

}
.ipt{

border: 1px solid #d3d3d3;
padding: 10px 10px;
width: 290px;
border-radius: 4px;
padding-left: 35px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s

}
.ipt:focus{

border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)

}
.ansi{

background: url(../user/images/logo.png) no-repeat;
width: 157px;
height: 48px;
position: absolute;
left: 39px;
top: 30px;

}
.u_logo{

background: url(../user/images/%E7%94%A8%E6%88%B72.png) no-repeat;
padding: 10px 10px;
position: absolute;
top: 43px;
left: 37px;

}
.p_logo{

background: url(../user/images/%E5%AF%86%E7%A0%813.png) no-repeat;
padding: 10px 10px;
position: absolute;
top: 12px;
left: 37px;

}
a{

text-decoration: none;

}
.tou{

background: url("images/tou.png") no-repeat;
width: 97px;
height: 92px;
position: absolute;
top: -87px;
left: 140px;

}
.left_hand{

background: url("images/left_hand.png") no-repeat;
width: 32px;
height: 37px;
position: absolute;
top: -38px;
left: 150px;

}
.right_hand{

background: url("images/right_hand.png") no-repeat;
width: 32px;
height: 37px;
position: absolute;
top: -38px;
right: -64px;

}
.initial_left_hand{

background: url("images/hand.png") no-repeat;
width: 30px;
height: 20px;
position: absolute;
top: -12px;
left: 100px;

}
.initial_right_hand{

background: url("images/hand.png") no-repeat;
width: 30px;
height: 20px;
position: absolute;
top: -12px;
right: -112px;

}
.left_handing{

background: url("images/left-handing.png") no-repeat;
width: 30px;
height: 20px;
position: absolute;
top: -24px;
left: 139px;

}
.right_handinging{

background: url("images/right_handing.png") no-repeat;
width: 30px;
height: 20px;
position: absolute;
top: -21px;
left: 210px;

}
.denglu{background:#6ad4ee; padding: 9px 10px; border-radius: 4px; border-image: none; color: rgb(255, 255, 255); font-weight: bold; margin-left:130px; width:100px;}

</style>
<script type="text/javascript">

$(function(){

//得到焦点
$("#password").focus(function(){
    $("#left_hand").animate({
        left: "150",
        top: " -38"
    },{step: function(){
        if(parseInt($("#left_hand").css("left"))>140){
            $("#left_hand").attr("class","left_hand");
        }
    }}, 2000);
    $("#right_hand").animate({
        right: "-64",
        top: "-38px"
    },{step: function(){
        if(parseInt($("#right_hand").css("right"))> -70){
            $("#right_hand").attr("class","right_hand");
        }
    }}, 2000);
});
//失去焦点
$("#password").blur(function(){
    $("#left_hand").attr("class","initial_left_hand");
    $("#left_hand").attr("style","left:100px;top:-12px;");
    $("#right_hand").attr("class","initial_right_hand");
    $("#right_hand").attr("style","right:-112px;top:-12px");
});

});
</script>
</head>
<body>
<div class="top_div">
<div class="ansi">
</div>

</div>
<div style="background: rgb(255, 255, 255); margin: -100px auto auto; border: 1px solid rgb(231, 231, 231); border-image: none; width: 400px; height: 200px; text-align: center;">
<div style="width: 165px; height: 96px; position: absolute;">
<div class="tou"></div>
<span class="wenhua">文化执法云平台系统</span>
<span class="wenhua1">Culture law enforcement cloud platform system</span>
<div class="initial_left_hand" id="left_hand"></div>
<div class="initial_right_hand" id="right_hand"></div></div>

<span
class="u_logo"></span> <input class="ipt" type="text" placeholder="请输入用户名" value="">

</P>

<span class="p_logo"></span>
<input class="ipt" id="password" type="password" placeholder="请输入密码" value="">


<div style="height: 50px; line-height: 50px; margin-top: 30px; border-top-color: rgb(231, 231, 231); border-top-width: 1px; border-top-style: solid;">

<span style="float: left;" class="button">登录

</div>
</div>

<div style="text-align:center;">
</div>
</body>
</html>

阅读 2.7k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏