目前我正在学习
HTML / CSS,我想用
Windows 8风格(metro风格)创建一个博客.但我在禁用溢出时遇到问题.我在< body>中使用了一张桌子html与每个表数据的固定大小.但是每当我在表中的一行中添加一个单元格时,如果该行在x方向上溢出,那么该单元格会自动跳转.
反正有没有避免这个?
这是我的代码的一部分:
CSS:
/***Creating the dashboard in metro style***/
.dashboard {
position: fixed;
top: 10.5em;
left: 0;
padding-top: 1em;
padding-left: 1em;
padding-bottom: 1em;
border: 5px solid white;
overflow-x: scroll;
overflow-y:hidden;
}
td {
border: 3px solid yellow;
float: left;
margin: 0;
color: black;
width: 300px;
font-size: 1.5em;
cursor: pointer;
position: relative;
background-color: white;
}
.tile-1{
background-color: #56d9c9;
color: white;
}
HTML:
I just got you babe 1 | I just got you babe 2 | I just got you babe 3 | I just got you babe 4 | I just got you babe 5 | I just got you babe 6 | ||
I just got you babe 7 | I just got you babe 8 | I just got you babe 9 | I just got you babe 10 | I just got you babe 11 | I just got you babe 12 | ||
I just got you babe 13 | I just got you babe 14 | I just got you babe 15 | I just got you babe 16 | I just got you babe 17 | I just got you babe 18 | I just got you babe 19 | I just got you babe 20 |