DIV+CSS表单布局的五个小技巧_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:29:18
Original
1633 people have browsed it

转自: http://blog.onlygrape.com/css-form-layout/267

1、表单文本输入的移动选择:
在文本输入栏中,假如加入了提示,来访者往往要用鼠标选取后删除,再输入有用的信息。
其实只要加入onMouseOver=”this.focus()” onFocus=”this.select()” 代码到

Input English.. textarea >


类似的,可以加入代码到


2、表单输入单元点击删除:

本列同上则作用类似,只是使用鼠标上略有变化,需要点击而不像上则的只要鼠标覆盖。如:


点击输入单元后,提示信息会删除,是不是很方便。


3、表单输入单元的边框设置:

更改传统的表单单元边框,会让你的主页生色不少。如:

其中”style=***”为左右上下和背景色设置,适用于其它单元,请读者亲自试试。

4、表单输入单元的文字设置:

表单中单元的字体是可以修改的,如:

其中”style=***”为字体和字大小设置。

5、修改表单属性为弹出窗口:

大多数表单激活后,会在当前页面中打开,影响正常浏览。不如修改一下,如:

其中”target=_blank”为控制在弹出窗口打开。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!