表单布局和格式 [英] Form Layout and Formatting

查看:67
本文介绍了表单布局和格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在开发一个网站的新版本,该网站需要一个会员申请表,这样网站的某些功能才能供会员使用。该网站面向教会领袖,需要他们提供大量信息。我有两个与表单布局和格式有关的问题。


1)如何从文本区域删除边框?

2)如何格式化一个输入文本字段,用于显示日期格式dd / mm / ccyy?


能够这样做可以改善表单的显示和表单的可用性。


不幸的是所有的开发都是本地的,所以我无法展示一个例子。不过,此时的注释代码是:


HTML:

Hi,

I am working on new version of a site that requires an application form for membership, this is so that certain features of the site are only available to members. The site is aimed at Church Leaders and requires a lot of information from them. I have two questions relating to form layout and formatting.

1) How do you remove the border from a text area?
2) How do you format an input text field to display a date format of dd/mm/ccyy?

Being able to do this would improve the display of the form and the usability of the form.

Unfortunately all of the development is local and so I am not able to the show an example. Howver, the code of note at this point is:

HTML:

展开 | 选择 | 换行 | 行号

推荐答案

我在CSS中用以下内容对textarea边框进行了排序:

I sorted the textarea border with the following in CSS:

展开 | 选择 | Wrap | 行号


html和css都不会为你格式化。
Neither html nor css will format for you.


嗨...


你可以使用javascript格式化必须在文本框中显示的值...您是从用户输入获取数据还是从服务器填充数据的只读字段?


亲切的问候......
hi ...

you may format the value that has to be shown in the textbox with javascript ... do you get the data from the users input or is it a readonly-field that is filled with data from the server?

kind regards ...


这篇关于表单布局和格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆