我讨厌 IE7,它让我生病了。请我需要帮助,可能我做错了什么或......
这是我的CSS:
input[type='checkbox']
{
opacity: 0;
float: left;
width: 18px;
}
input[type='checkbox'] + label {
margin: 0;
clear: none;
padding: 5px 0 4px 24px;
/* Make look clickable because they are */
cursor: pointer;
background: url(https://css-tricks.com/wufoo/themes/customradiosandcheckboxes/off.png) left center no-repeat;
}
input[type='checkbox']:checked + label {
background-image: url(https://css-tricks.com/wufoo/themes/customradiosandcheckboxes/check.png);
html:
<input id="Field2" name="Field2" type="checkbox" class="field checkbox" checked="checked">
<label class="choice" for="Field2">First Choice</label>
<br><br>
<input id="Field3" name="Field3" type="checkbox" class="field checkbox">
<label class="choice" for="Field3">Second Choice</label>
<br><br>
<input id="Field4" name="Field4" type="checkbox" class="field checkbox">
<label class="choice" for="Field4">Third Choice</label></body>
IE9 视图:
IE7 和 IE8
我发现有人说它应该与“selectivizr.js”一起使用更详细的儿子这个网站“ http://selectivizr.com/ ”
我按照他们的指示做了:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="selectivizr.js"></script>
<noscript><link rel="stylesheet" href="[fallback css]" /></noscript>
<![endif]-->
这并没有解决问题。
如果有人想尝试一下,我创建了这个小提琴!http://jsfiddle.net/6mUWk/