Spring Roo 生成的表单字段
有谁知道如何自定义 Spring Roo 生成的表单字段,以便我可以更改关联标签的 with ?
例如,
<field:input field="firstName" id="c_com_myclass_Person_firstname" label="What is your first name?" z=""/>
该字段在屏幕全宽的 div 内呈现,但标签被分成两行,就好像标签决定为标签提供例如 50px 宽度或其他内容。例如,
What is
your first name?:
标签上没有“样式”属性,我找不到任何看起来可以让我控制宽度的东西。
谢谢
Does anyone know how to customize the form fields that Spring Roo generates so I can change the with of the associated label?
For example,
<field:input field="firstName" id="c_com_myclass_Person_firstname" label="What is your first name?" z=""/>
The field is rendered inside a div that is the full width of the screen, but the label is split onto two lines as if the tag has decided to give the label e.g. 50px width or something. e.g.
What is
your first name?:
There's no 'style' attribute on the tag and I can't find anything that looks like it would let me control the width.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它位于 standard.css 中 - 类标签具有 100px 固定宽度。太沉迷于在提取的 dijit tundra css 文件中查找,我忘记检查明显的内容。
不得不说,我喜欢 Roo 的很多地方,但是如果您想自定义应用程序的外观,标签库和 dijit 的东西会让处理演示方面的工作变得非常繁琐……
It's in the standard.css - class label has a 100px fixed width. Was so obsessed with finding in extracted dijit tundra css files I forgot to check the obvious.
Have to say, there are lots of things I like about Roo, but the tag libs and dijit stuff make working with the presentation side of things a real chore if you want to customise the appearence of your app...