+ -
当前位置:首页 → 问答吧 → 为什么css的width 只对中文有效?

为什么css的width 只对中文有效?

时间:2011-09-06

来源:互联网

我划了一个div css是这样写的:
.content{margin-top: -3px;margin-bottom:10px; padding: 20px 0;background: #fcfbf8;border-bottom: 1px solid #cfcfcf;border-right: 1px solid #cfcfcf;width:688 !important;height:auto !important; height:670px;min-height:670px;}


我输入中文进去时 是正常显示,但是碰到英文就无视 width 长度,全部在一行显示。
这是咋回事啊?

作者: langyuziyou13   发布时间: 2011-09-06

英文之间得有空格,你肯定是乱输一通,一大串都没空格吧

作者: lxlsoft   发布时间: 2011-09-06

楼上说的是对的。 你写英文的时候也会发现,不会随意给你换行的。一个道理

作者: zhangguicheng12   发布时间: 2011-09-06

热门下载

更多