- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 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/
我目前正在努力寻找资源来帮助我为我受雇的项目学习 Trinidad 2.0。我很难找到 2.0 的资源,尽管 1.2 有很多资源。 通常这表明一项技术已经失宠,并且有更好的选择可供选择。特立尼达只是在
我有一个 tr:table,其 rowSelection 属性设置为“single”。它绘制了一个额外的列,里面有一个单选按钮。但我想更改该列标题处显示的文本。我没有找到任何可以让我完成此任务的属性。
我正在使用 tr:table 并且我想在单元格之间添加间距,这样它们就不会彼此靠近 生成的 html 具有属性 cellSpacing = 0 标签没有这样的属性。 我该怎么做? 谢谢, 约翰。 最佳
当我的用户在单击复选框后按“Enter”键时,我的表单应该表现得就像按下“下一步”按钮一样。但是,我正在使用 PPR(部分页面渲染),因此当单击它时,我的复选框会触发“下一步”按钮进行重新绘制。这是通
问题: 我们有一个基于 Apache MyFaces Trinidad 的 Java 网络应用程序。当一个字段包含一些特殊字符(例如 Ñ、á 等)时,我们在尝试部分提交(仅此而已:通过 Ajax)表单
我有一个简单的要求:我的的列数是动态的。我将有一个对象列表,someBean.features这将决定渲染多少列。 下图应该可以阐明我的要求。 在我得到的代码中,使用了 JSTL 标签在 JSF 环境
我是一名优秀的程序员,十分优秀!