html垂直方向溢出,禁用HTML / CSS中的垂直溢出

目前我正在学习

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值