我整个上午都在重新创建 Windows 8 瓷砖,不知何故我只使用 CCS2 让它工作。到目前为止,它适用于较新版本的 Chrome、IE 和 Firefox,但它适用于 100% 和 25% 的浏览器缩放级别。
我真的不想重新开始,所以无论如何我可以解决这个问题吗?
HTML
<div id="tile-wrap">
<div class="wide x3-long red fR"></div>
<div class="x2-wide long orange fR"></div>
<div class="wide long yellow fR"></div>
<div class="wide long green fR"></div>
<div class="wide long blue fR"></div>
<div class="x3-wide long purple fR"></div>
<div class="x5-wide long gray fR"></div>
<div class="x4-wide x2-long black fR"></div>
<div class="wide x2-long white fR"></div>
<div class="x6-wide long yellow fR"></div>
</div>
CSS
.fL {
float:left;
}
.fR {
float:right;
}
.fCL {
clear:left;
}
.fCR {
clear:right;
}
.fC {
clear:both;
}
.iB {
display:inline-block;
}
div {
/* prevent content from spilling out of tiles */
overflow:hidden;
word-wrap:break-word;
}
/*** sizes ***/
.wide { width:150px; }
.x-wide { width:250px; }
.x2-wide { width:327px; }
.x3-wide { width:504px; }
.x4-wide { width:680px; }
.x5-wide { width:680px; }
.x6-wide { width: 855px; }
.long { height:150px; }
.x-long { height:250px; }
.x2-long { height:327px; }
.x3-long { height:502px; }
.x4-long { height:650px; }
.x5-long { height:650px; }
.wide, .x-wide, .x2-wide, .x3-wide, .x4-wide, .x5-wide, .x6-wide {
margin-left:10px;
margin-right:10px;
}
.long, .x-long, .x2-long, .x3-long, .x4-long, .x5-long {
margin-top:10px;
margin-bottom:10px;
}
/*** color ***/
.red {
background-color:#AE1F23;
border:3px solid #AE1F23;
}
.orange {
background-color:#CD4900;
border:3px solid #CD4900;
}
.yellow {
background-color:#FFC40D;
border:3px solid #FFC40D;
}
.green {
background-color:#01A31C;
border:3px solid #01A31C;
}
.blue {
background-color:#0072BC;
border:3px solid #0072BC;
}
.purple {
background-color:#4F1ACB;
border:3px solid #4F1ACB;
}
.gray {
background-color:#555;
border:3px solid #555;
}
.black {
background-color:#000000;
border:3px solid #000000;
}
.white {
background-color:#FFFFFF;
border:3px solid #FFFFFF;
}
.red:hover, .red:focus,
.orange:hover, .orange:focus,
.yellow:hover, .yellow:focus,
.green:hover, .green:focus,
.blue:hover, .blue:focus,
.purple:hover, .purple:focus,
.gray:hover, .gray:focus,
.black:hover, .black:focus {
border:3px solid #FFFFFF;
}
.white:hover, .white:focus {
border:3px solid #555;
}