gpt4 book ai didi

html - JSF 特立尼达 tr :table css issue

转载 作者:行者123 更新时间:2023-11-28 13:33:24 25 4
gpt4 key购买 nike

我正在使用 tr:table 并且我想在单元格之间添加间距,这样它们就不会彼此靠近

生成的 html 具有属性 cellSpacing = 0

<tr:table>标签没有这样的属性。

我该怎么做?

谢谢,

约翰。

最佳答案

你应该创建一个 skin具有自定义样式。

A skin in Trinidad is a global style sheet that affects the entire application. You can create one skin for the entire application and as long as you have the tag on your page it will get picked up. Every component will automatically use the styling as described by the skin. Any changes to the skin will be picked up at runtime, no change to code is needed. Skins are based on the Cascading Style Sheet (CSS) specification.

在你的皮肤 CSS 中你可以有类似的东西:

af|table::content {
border-collapse: collapse;
border-spacing: 0;
}

另见:

关于html - JSF 特立尼达 tr :table css issue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13289962/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com