我有一个带有表单的 html 页面。我正在尝试将图像添加到按钮。到目前为止,按钮的图像在 Firefox 和 chrome 中工作/显示。但在 IE8 中它只是显示正常的输入按钮。甚至透明度和其他属性也不起作用。任何人都可以建议任何解决方案,或者如果我错了,请纠正我,因为我只是所有这些网络事物的菜鸟。谢谢!
base.html:
{% load static %}
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="{% static "assets/css/style.css" %}">
</head>
<body>
<header>
<div id="main">
<div id="content">
<a href="http://www.google.com"><img src="{% static "assets/images/google.png" %}" width="202.5" class="logo"/></a>
</div>
<div id="form">
<form action="/auth/" method="post">{% csrf_token %}
<label for="email" class="label">Email</label>
<input type="text" name="email" value="" id="email">
<label for="password" class="label">Password</label>
<input type="password" name="password" value="" id="password">
<input type="submit" value=" "/>
</form>
</div>
</div>
</header>
<footer>
<div id="footer">
<div id="image">
<div>
<a href="/assets/image/test.png"></a>
</div
</div>
</div>
</footer>
样式.css:
* {
margin:0;
padding:0;
}
body{
background:#3effbd;
}
#main {
background-color:#3B5998;
width:1000%;
height:90px;
}
.logo {
border:none;
top:24px;
left:247px;
position:relative;
padding:0px;
margin:0px;
}
.login li{
position:relative;
top: -10px;
left: 900px;
display:inline;
}
input[type=submit]{
border:none;
background-color: transparent;
overflow: hidden;
cursor: pointer;
width: 57px;
height: 26px;
background-image: url(../images/button.png);
}
.label {
font-size: 15px;
color: white;
position: relative;
margin: 10px;
}