0
我正在为我的无线电做一个图像替换,它在IE(只是打开html页面)本地工作,在WAMP在IE和我的Linux服务器在IE中在线,但不会在我的内部IIS 7服务器上工作。适用于IIS服务器上的Chrome,但不支持IE。css:检查不起作用在IIS 7服务器上的IE浏览器
HTML
<input id='Good' type='radio' class='css-checkbox'name='value' value='1'/>
<label id='1' class='css-label' for='Good'> Good </label>
CSS
input[type=radio].css-checkbox {
margin: 10px;
display:none;
}
input[type=radio].css-checkbox + label.css-label {
padding-left:27px;
height:22px;
display:inline-block;
line-height:22px;
background-repeat:no-repeat;
background-position: 0 0 !important;
vertical-align:middle;
cursor:pointer;
}
label.css-label {
margin: 10px;
background-image:url(../images/radio.png);
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
input[type=radio].css-checkbox:checked + label.css-label{
background-position: 0 -22px !important;
}
你是否收到任何错误信息?快速猜测:当客户端功能因服务器而异时,我大部分时间都在寻找浏览器的“兼容模式”或“安全模式”,这可能会因您在本地地址或远程地址上而有所不同。这与服务器无关,但域... –
没有错误信息 – Jeffha77
看看“网络”选项卡或您的开发人员工具。我的第二个猜测会是CSS中相对路径的问题(尽管我不知道为什么这会在Chrome中工作......),但在这种情况下,它将在网络选项卡中显示为404状态。 –