简体   繁体   English

Spring Roo生成的表单字段

[英]Form fields generated by Spring Roo

Does anyone know how to customize the form fields that Spring Roo generates so I can change the with of the associated label? 有谁知道如何自定义Spring Roo生成的表单字段,以便可以更改关联标签的with?

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 eg 50px width or something. 该字段在div内渲染,该div是屏幕的整个宽度,但是标签被分成两行,就好像标签已决定给出标签一样,例如50px宽度或其他内容。 eg 例如

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. 标签上没有'style'属性,我找不到任何可以让我控制宽度的东西。

Thanks 谢谢

It's in the standard.css - class label has a 100px fixed width. 它位于standard.css中-类标签的固定宽度为100px。 Was so obsessed with finding in extracted dijit tundra css files I forgot to check the obvious. 太着迷于在提取的dijit tundra css文件中发现我忘了检查明显的东西。

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... 不得不说,我对Roo有很多喜欢的东西,但是如果您想自定义应用的外观,则标签库和dijit东西会使处理表示方面的事情变得非常麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM