右边框不显示在Google Chrome上 [英] Right border not displaying on google chrome

查看:128
本文介绍了右边框不显示在Google Chrome上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 div ,其中包含一个带有一些边框的 a 。请参阅:

I have a div which contains an a with some border. See:

http://webnumbr.com/all

它在FF和IE中工作得很好,但为什么Chrome右侧不显示?是无效的CSS吗? (如果有问题,则在chrome OSX中测试)

It works great in FF and IE, but why doesn't the right hand side render in Chrome? Is it invalid CSS? (testing in chrome OSX if that matters)

推荐答案

测试用例:在给定URL的内容改变之后感觉:

Test case: Included so this question still makes sense after the content at the given URL changes:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html><head><style type="text/css">
div {
  float: left;
  clear: left;
  margin: 3px;
}
span {
  border: 1px solid;
}
</style></head><body>

<!-- does not show right border -->
<div><span>With trailing space, no width </span></div> 

<!-- does show right border -->
<div><span>No trailing space, no width</span></div>
<div style="width: 40ex;"><span>With trailing space, has width </span></div>
<div style="width: 40ex;"><span>No trailing space, has width</span></div>

</body></html>

在Google Chrome 4.0.266.0(官方版本33992)中使用WebKit 532.6验证。

Verified in Google Chrome 4.0.266.0 (Official Build 33992) with WebKit 532.6.

这篇关于右边框不显示在Google Chrome上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆