?? 使用技巧小集.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0044)http://fason.nease.net/code/form/still/2.htm -->
<HTML><HEAD><TITLE>New Page 2</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD>
<BODY>
<DIV align=center>
<CENTER>
<TABLE style="FONT-SIZE: 12px" borderColor=#000000 cellSpacing=0
borderColorDark=#ffffff cellPadding=0 width="90%" borderColorLight=#000000
border=1>
<TBODY>
<TR>
<TD
width="100%">1.表單文本輸入的移動選擇:在文本輸入欄中,如果加入了提示,來訪者往往要用鼠標選取后刪除,再輸入有用的信息。其實只要加入onMouseOver="this.focus()"
onFocus="this.select()" 代碼到 <textarea> 中,一切就會變得簡單多了,如:<textarea
name=textarea wrap=virtual rows=2 cols=22 onMouseOver="this.focus()"
onFocus="this.select()">Input English..</textarea>
,類似的,可以加入代碼到<input>。
<P>2.表單輸入單元點擊刪除:本列同上則作用類似,只是使用鼠標上略有變化,需要點擊而不像上則的只要鼠標覆蓋。如:<input
type=text name="address" size=19 value="Enter,e-mail..."
onFocus="this.value=''" >,點擊輸入單元后,提示信息會刪除,是不是很方便。
<P>3.表單輸入單元的邊框設置:更改傳統的表單單元邊框,會讓你的主頁生色不少。如:<input type=radio name=action
value=subscribe checked style="BORDER-BOTTOM: dashed 1px; BORDER-LEFT:
dashed 1px; BORDER-RIGHT: dashed 1px; BORDER-TOP: dashed
1px;background-color:
#FEF5C8">,其中"style=***"為左右上下和背景色設置,適用于其它單元,請讀者親自試試。
<P>4.表單輸入單元的文字設置:表單中單元的字體是可以修改的,如:<input type=text name="address"
size=19 value="Enter,e-mail..." style=font-family:"verdana";font-size:10px
> ,其中"style=***"為字體和字大小設置。
<P>5.修改表單屬性為彈出窗口:大多數表單激活后,會在當前頁面中打開,影響正常瀏覽。不如修改一下,如:<form method=POST
action=url target=_blank>,其中"target=_blank"為控制在彈出窗口打開。</P>
<P> </P></TD></TR></TBODY></TABLE></CENTER></DIV></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -