简体   繁体   中英

How to adjust the width length of g:field type=“number” in grails

I tried the ff:

 <g:field type="number" name="refNumber" width="100 px"/>

 <g:field type="number" name="refNumber" size="100"/>

But no luck.

Nothing to to with grails, but just plain HTML. "100 px" should not have a space. It should be like,

<g:field type="number" name="refNumber" width="100px"/>

just add a style:

<g:field type="number" name="refNumber" style="width: 100px"/>

or even better class:

<g:field type="number" name="refNumber" class="yourClass"/>

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