我正在负责任地使用 CSS 开发浮动框,我的目标是让它在 Internet Explorer 7 和 8 中工作。我可以在 Jquery 中实现这一点吗?
如果有人可以提供帮助,这将是一个巨大的帮助!
这是我的小提琴。请更新 :)
/* =============================================================================
BOXS RESPONSIVE
========================================================================== */
#examples {
width: 100%;
max-width: 970px;
margin: 0 auto;
}
#examples ul {
width: 100%;
overflow: hidden;
*zoom: 1;
}
#examples ul li {
float: left;
margin-right: -100%;
width: 100%;
}
#examples ul li a:hover {
text-decoration: none;
}
#examples ul li span {
font-size: 16px;
line-height: 22px;
display: block;
padding-bottom: 30px;
}
#examples ul li img {
width: 100%;
}
#examples ul li:nth-child(1n+1) {
margin-left: 0%;
margin-bottom: 3.85%;
clear: both;
overflow: hidden;
*zoom: 1;
}
@media screen and (min-width: 460px) {
#examples ul li {
float: left;
margin-right: -100%;
width: 48.08%;
}
#examples ul li span {
padding-bottom: 10px;
}
#examples ul li:nth-child(2n+1) {
margin-left: 0%;
margin-bottom: 3.85%;
clear: both;
overflow: hidden;
*zoom: 1;
}
#examples ul li:nth-child(2n+2) {
margin-left: 51.93%;
margin-bottom: 3.85%;
clear: none;
}
}
@media screen and (min-width: 700px) {
#examples ul li span {
padding-bottom: 10px;
}
}
@media screen and (min-width: 900px) {
#examples ul li {
float: left;
margin-right: -100%;
width: 22.11%;
}
#examples ul li span {
padding-bottom: 0px;
}
#examples ul li:nth-child(4n+1) {
margin-left: 0%;
margin-bottom: 3.85%;
clear: both;
overflow: hidden;
*zoom: 1;
}
#examples ul li:nth-child(4n+2) {
margin-left: 25.96%;
margin-bottom: 3.85%;
clear: none;
}
#examples ul li:nth-child(4n+3) {
margin-left: 51.93%;
margin-bottom: 3.85%;
clear: none;
}
#examples ul li:nth-child(4n+4) {
margin-left: 77.89%;
margin-bottom: 3.85%;
clear: none;
}
}