行边框颜色 [英] row border color

查看:123
本文介绍了行边框颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要将< tr> 的边框设为黄色。我可以设置< td> 的边框,但无法设置如何设置< tr>
如何做?

I want to set the border of <tr> to yellow. I can set the border of <td> but can't figure how to set border of row <tr>. How to do this?

感谢。

推荐答案

无法执行,ime,即使css规格( http:// www .w3.org / TR / CSS2 / box.html#border-properties )清楚地说,边框和边框颜色可以应用到所有元素。虽然可能是因为< table>可能不会落在盒子模型下;我不确定这一点。

No can do, ime, even though css spec ( http://www.w3.org/TR/CSS2/box.html#border-properties ) plainly says border and border-color can be applied to "all elements". Though it might be because <table> might not fall under the box model; I'm not sure about this.

无论如何,这是一个反直觉,疯狂的似乎是页面膨胀的皮塔。

In any case, it's a counter-intuitive, crazy-seeming, page-bloat-inducing pita.

必须有更好的解决方案,而不是边界每一个表格单元格,这是我最后做的。

There must be better solutions than bordering every single table cell, which is what I end up doing.

- pete

这篇关于行边框颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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