简体   繁体   中英

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?

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. 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.

Thanks

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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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