在< tbody>上的盒子阴影在Chrome中? [英] box-shadow on <tbody> in Chrome?

查看:92
本文介绍了在< tbody>上的盒子阴影在Chrome中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试大约一个小时,以获取Chrome在Chrome中应用于< tbody> 标签,但它不工作。我正在得到我所期望的在所有其他浏览器(一个阴影框在Firefox,没有在IE6或IE7)... Chrome也没有呈现任何边框样式到我的< tbody> tag ...这个标签本身有没有限制或者我做错了什么?

解决方案

我不知道会有什么反响(如果有的话),但只要设置 :block 在 tbody 修复它在Chrome(和Opera,它也不工作):



请参阅: http://jsfiddle.net/nuXgg/1/ p>

I've been trying for about an hour to get chrome to pick up my box-shadow (and browser-specific variants) in Chrome applied to the <tbody> tag, but its not working. I'm getting exactly what I expect in all other browsers (a shadowed box in Firefox, nothing in IE6 or IE7)... Chrome is also not rendering any border styles to my <tbody> tag... Are there limitations on this tag itself or have I done something wrong?

解决方案

I'm not sure what repercussions (if any) it will have, but simply setting display: block on tbody fixes it in Chrome (and Opera, where it also didn't work):

See: http://jsfiddle.net/nuXgg/1/

这篇关于在&lt; tbody&gt;上的盒子阴影在Chrome中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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