0
http://jsfiddle.net/EWH8E/展開/摺疊使用複選框DIV在IE
我有包括隱藏當複選框被「選中」和隱藏的透露一些內容的網頁時再「取消選中」。一切都在Chrome和FF中完美運行,但是我可以獲得始終顯示或隱藏的內容,但複選框在IE中不起作用。 我使用Ie8,但也嘗試了9也發生了同樣的情況。有關如何使其發揮作用的建議?我在HTML頭部分中包含以下內容來反駁文章元素的使用。
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
現在這裏是PHP代碼
echo "<div class=\"resultsContainer\">";
回聲「 近期賽果
<article class=\"small\">
<table class=\"results\">";
$query2=$database->query("SELECT team_name, team_score, opposition_score,
opposition_name from results_a ORDER BY updated DESC LIMIT 0, 5");
$i=0;
while ($row2=$query2->fetch(PDO::FETCH_NUM)) {
echo ($i %2 == 0)? "<tr class=\"stripe\">" : "<tr class=\"nostripe\">";
printf ("<td>%s<td class=\"small\">%s<td class=\"small\">%s<td>%s</tr>",
$row2[0],$row2[1], $row2[2], $row2[3]);
$i++;
}
echo "</table>";
echo "</article>";
echo "</div>";
而CSS
.resultsContainer article {
background:white ;
overflow:hidden ;
height: 0px ;
position: relative ;
z-index:10}
.resultsContainer input:checked ~ article.small {
height:100% ;
width: 100% }
.results {text-align: center ;
table-layout:fixed ;
margin-left: 0 ;
margin-right: 0 ;
padding-top:0.7em ;
width: 65% ;
color:#0431B4 }
我們需要看到實際的HTML輸出。的jsfiddle? –
http://jsfiddle.net/EWH8E/ – DJC
:如果IE瀏覽器版本低於9 –