当前位置:首页 » 网站资讯 » 程序员怎么控制网站字体大

程序员怎么控制网站字体大

发布时间: 2024-06-18 01:34:54

❶ 绋嫔簭锻桦繀椤荤煡阆撶殑HTML甯哥敤浠g爜链夊摢浜

html+css浠g爜
鏂囨湰璁剧疆
1銆乫ont-size: 瀛楀彿鍙傛暟
2銆乫ont-style: 瀛椾綋镙煎纺
3銆乫ont-weight: 瀛椾綋绮楃粏
4銆侀滆壊灞炴
color: 鍙傛暟
娉ㄦ剰浣跨敤缃戦〉瀹夊叏镩

瓒呴摼鎺ヨ剧疆
text-decoration: 鍙傛暟
涓昏佺敤阃旀槸鏀瑰彉娴忚埚櫒鏄剧ず鏂囧瓧阈炬帴镞剁殑涓嫔垝绾裤
鍙傛暟鍙栧艰寖锲达细
underline锛氢负鏂囧瓧锷犱笅鍒掔嚎
overline锛氢负鏂囧瓧锷犱笂鍒掔嚎
line-through锛氢负鏂囧瓧锷犲垹闄ょ嚎
blink锛氢娇鏂囧瓧闂鐑
none锛氢笉鏄剧ず涓婅堪浠讳綍鏁堟灉

鑳屾櫙
1銆佽儗鏅棰滆壊
background-color: 鍙傛暟
2銆佽儗鏅锲剧墖
background-image: url(URL)
URL灏辨槸鑳屾櫙锲剧墖镄勫瓨鏀捐矾寰勶纴none琛ㄧず镞犮
3銆佽儗鏅锲剧墖閲嶅
background-repeat: 鍙傛暟
鍙傛暟鍙栧艰寖锲 锛
no-repeat锛氢笉閲嶅嶅钩阈鸿儗鏅锲剧墖
repeat-x锛氢娇锲剧墖鍙鍦ㄦ按骞虫柟钖戜笂骞抽摵
repeat-y锛氢娇锲剧墖鍙鍦ㄥ瀭鐩存柟钖戜笂骞抽摵
濡傛灉涓嶆寚瀹氲儗鏅锲剧墖閲嶅嶅睘镐э纴娴忚埚櫒榛樿ょ殑鏄鑳屾櫙锲剧墖钖戞按骞炽佸瀭鐩翠袱涓鏂瑰悜涓婂钩阈恒
4銆佽儗鏅锲剧墖锲哄畾
鑳屾櫙锲剧墖锲哄畾鎺у埗鑳屾櫙锲剧墖鏄钖﹂殢缃戦〉镄勬粴锷ㄨ屾粴锷ㄣ傚傛灉涓嶈剧疆鑳屾櫙锲剧墖锲哄畾灞炴э纴娴忚埚櫒榛樿よ儗鏅锲剧墖闅忕绣椤电殑婊氩姩钥屾粴锷ㄣ备负浜嗛伩鍏嶈繃浜庤姳鍝ㄧ殑鑳屾櫙锲剧墖鍦ㄦ粴锷ㄦ椂杞绉绘祻瑙堣呯殑娉ㄦ剰锷涳纴涓鑸閮借句负锲哄畾
background-attachment: 鍙傛暟
鍙傛暟鍙栧艰寖锲达细
fixed锛氱绣椤垫粴锷ㄦ椂锛岃儗鏅锲剧墖鐩稿逛簬娴忚埚櫒镄勭獥鍙h岃█锛屽浐瀹氢笉锷
scroll锛氱绣椤垫粴锷ㄦ椂锛岃儗鏅锲剧墖鐩稿逛簬娴忚埚櫒镄勭獥鍙h岃█锛屼竴璧锋粴锷

鍖哄潡
1銆佸崟璇嶉棿璺
word-spacing: 闂撮殧璺濈
2銆佸瓧姣嶉棿璺
letter-spacing: 瀛楁瘝闂磋窛
3銆佹枃链瀵归绨
text-align: 鍙傛暟
鍙傛暟镄勫彇鍊硷细
left锛氩乏瀵归绨
right锛氩彸瀵归绨
center锛氩眳涓瀵归绨
justify锛氱浉瀵瑰乏鍙冲归绨
4銆佸瀭鐩村归绨
vertical-align: 鍙傛暟
top锛氶《瀵归绨
bottom锛氩簳瀵归绨
text-top锛氱浉瀵规枃链椤跺归绨
text-bottom锛氱浉瀵规枃链搴曞归绨
baseline锛氩熀鍑嗙嚎瀵归绨
middle锛氢腑蹇冨归绨
sub锛氢互涓嬫爣镄勫舰寮忔樉绀
super锛氢互涓婃爣镄勫舰寮忔樉绀
5銆佹枃链缂╄繘
text-indent: 缂╄繘璺濈
12px鐩稿綋浜庝竴涓鏂囧瓧璺濈
6銆佺┖镙
white-space: 鍙傛暟
normal 姝e父
pre 淇濈暀
nowrap 涓嶆崲琛
7銆佹樉绀烘牱寮
display: 鍙傛暟
鍙傛暟鍙栧艰寖锲达细
block锛氩潡绾у厓绱狅纴鍦ㄥ硅薄鍓嶅悗閮芥崲琛
inline锛氩湪瀵硅薄鍓嶅悗閮戒笉鎹㈣
list-item锛氩湪瀵硅薄鍓嶅悗閮芥崲琛岋纴澧炲姞浜嗛”鐩绗﹀彿
none锛氭棤鏄剧ず

鏂规
1銆乭eight 楂桦害
2銆亀idth 瀹藉害
3銆乸adding 鍐呰竟璺
4銆乵argin 澶栬竟璺
5銆乫loat锛堟诞锷锛夛细鍙浠ヨ╁潡绾у厓绱犲湪涓琛屼腑鎺掑垪锛屼緥濡傛í钖戣彍鍗曘
6銆乧lear 娓呴櫎娴锷

杈规
1銆佹牱寮
border style 鍙傛暟
杈规嗘牱寮忕殑鍙傛暟锛
none锛氭棤杈规
dotted锛氲竟妗嗕负镣圭嚎
dashed锛氲竟妗嗕负闀跨煭绾
solid锛氲竟妗嗕负瀹炵嚎
double锛氲竟妗嗕负鍙岀嚎
2銆佸藉害
border width 鍙傛暟
3銆侀滆壊
border color 鍙傛暟

鍒楄〃
list-style-type 鍒楄〃镙峰纺
涓嶅悓娴忚埚櫒镄勫垪琛ㄧ﹀彲鑳戒笉鐩稿悓锛屽彲鑳戒细褰卞搷鍒扮绣椤碉纴镓浠ョ绣椤典腑镄勫垪琛ㄥぇ澶氶兘鏄鐢辫儗鏅锲剧墖鏄剧ず銆
鎺у埗鐢ㄦ埛鐣岄溃镄勬牱寮

榧犳爣
cursor锛氶紶镙囧舰鐘跺弬鏁
CSS榧犳爣褰㈢姸鍙傛暟琛锛
榧犳爣褰㈢姸锛欳SS浠g爜
style="cursor:hand" 銆銆銆銆銆镓嫔舰
style="cursor:crosshair" 銆銆鍗佸瓧褰
style="cursor:text" 銆銆銆銆銆鏂囨湰褰
style="cursor:wait" 銆銆銆銆銆娌欐纺褰
style="cursor:move" 銆銆銆銆鍗佸瓧绠澶村舰锛
style="cursor:help" 銆銆銆銆銆闂鍙峰舰
style="cursor:e-resize" 銆銆銆鍙崇澶村舰
style="cursor:n-resize" 銆銆銆涓婄澶村舰
style="cursor:nw-resize" 銆銆宸︿笂绠澶村舰
style="cursor:w-resize" 銆銆銆宸︾澶村舰
style="cursor:s-resize" 銆銆銆涓嬬澶村舰
style="cursor:se-resize" 銆銆鍙充笅绠澶村舰
style="cursor:sw-resize" 銆銆宸︿笅绠澶村舰

HTML甯哥敤浠g爜涔嬶细缁撴瀯镐у畾涔
鏂囦欢绫诲瀷<HTML></HTML> 锛堟斁鍦ㄦ。妗堢殑寮澶翠笌缁揿熬锛
鏂囦欢涓婚<TITLE></TITLE> 锛埚繀椤绘斁鍦ㄣ屾枃澶淬嶅尯鍧楀唴锛
鏂囧ご<HEAD></HEAD> 锛堟弿杩版ц祫鏂欙纴镀忔槸銆屼富棰樸嶏级
鏂囦綋<BODY></BODY> 锛堟枃浠舵湰浣掳级
镙囬<H?></H?> 锛堜粠1鍒6锛屾湁鍏灞傞夋嫨锛
镙囬樼殑瀵归绨 <H?ALIGN=LEFT|CENTER|RIGHT></H?>
鍖哄垎<DIV></DIV>
鍖哄垎镄勫归绨 <DIVALIGN=LEFT|RIGHT|CENTER|JUSTIFY></DIV>
寮曟枃鍖哄潡<BLOCKQUOTE></BLOCKQUOTE> 锛堥氩父浼氩唴缂╋级
寮鸿皟<EM></EM> 锛堥氩父浼氢互鏂滀綋鏄剧ず锛
鐗瑰埆寮鸿皟<STRONG></STRONG> 锛堥氩父浼氢互锷犵矖鏄剧ず锛
寮曟枃<CITE></CITE> 锛堥氩父浼氢互鏂滀綋鏄剧ず锛
镰<CODE></CODE> 锛堟樉绀哄师濮嬬爜涔嬬敤锛
镙锋湰<SAMP></SAMP>
阌鐩樿緭鍏<KBD></KBD>
鍙樻暟<VAR></VAR>
瀹氢箟<DFN></DFN> 锛堟湁浜涙祻瑙埚櫒涓嶆彁渚涳级
鍦板潃 <ADDRESS></ADDRESS>
澶у瓧<BIG></BIG>
灏忓瓧<SMALL></SMALL>
涓庡栬傜浉鍏崇殑镙囩撅纸浣滆呰嚜璁㈢殑琛ㄧ幇鏂瑰纺锛
锷犵矖<B></B>
鏂滀綋<I></I>
搴旷嚎<U></U> 锛埚皻链変簺娴忚埚櫒涓嶆彁渚涳级
鍒犻櫎绾<S></S> 锛埚皻链変簺娴忚埚櫒涓嶆彁渚涳级
涓嬫爣<SUB></SUB>
涓婃爣<SUP></SUP>
镓揿瓧链轰綋<TT></TT> 锛堢敤鍗旷┖镙煎瓧鍨嬫樉绀猴级
棰勫畾镙煎纺<PRE></PRE> 锛堜缭鐣欐枃浠朵腑绌烘牸镄勫ぇ灏忥级
棰勫畾镙煎纺镄勫藉害<PRE WIDTH=?></PRE>锛堜互瀛楀厓璁$畻锛
钖戜腑鐪嬮绨<CENTER></CENTER> 锛堟枃瀛椾笌锲剧墖閮藉彲浠ワ级
闂钥<BLINK></BLINK> 锛堟湁鍙蹭互𨱒ユ渶琚鍢插纰镄勬爣绛撅级
瀛椾綋澶у皬 <FONTSIZE=?></FONT>锛堜粠1鍒7锛
鏀瑰彉瀛椾綋澶у皬 <FONTSIZE=+|-?></FONT>
锘烘湰瀛椾綋澶у皬 <BASEFONTSIZE=?> 锛堜粠1鍒7; 鍐呭畾涓3锛
瀛椾綋棰滆壊 <FONTCOLOR="#$$"></FONT>锛$$涓洪滆壊浠g爜锛

HTML甯哥敤浠g爜涔嬶细淇鏀归〉闱㈢殑瀹炵敤镐HTML浠g爜
璐村浘锛<img src="锲剧墖鍦板潃">
锷犲叆杩炴帴锛<a href="镓瑕佽繛鎺ョ殑鐩稿叧鍦板潃">鍐欎笂浣犳兂鍐欑殑瀛</a>
鍦ㄦ柊绐楀彛镓揿紑杩炴帴锛<a href="鐩稿叧鍦板潃" target="_blank">鍐欎笂瑕佸啓镄勫瓧</a>
绉诲姩瀛椾綋(璧伴┈𨱔)锛<marquee>鍐欎笂浣犳兂鍐欑殑瀛</marquee>
瀛椾綋锷犵矖锛<b>鍐欎笂浣犳兂鍐欑殑瀛</b>
瀛椾綋鏂滀綋锛<i>鍐欎笂浣犳兂鍐欑殑瀛</i>
瀛椾綋涓嫔垝绾: <u>鍐欎笂浣犳兂鍐欑殑瀛</u>
瀛椾綋鍒犻櫎绾: <s>鍐欎笂浣犳兂鍐欑殑瀛</s>
瀛椾綋锷犲ぇ: <big>鍐欎笂浣犳兂鍐欑殑瀛</big>
瀛椾綋鎺у埗澶у皬锛<h1>鍐欎笂浣犳兂鍐欑殑瀛</h1> (鍏朵腑瀛椾綋澶у皬鍙浠岿1-h5,h1链澶э纴h5链灏)
镟存敼瀛椾綋棰滆壊锛<font color="#value">鍐欎笂浣犳兂鍐欑殑瀛</font>(鍏朵腑value鍊煎湪000000涓巉fffff(16浣嶈繘鍒)涔嬮棿
娑堥櫎杩炴帴镄勪笅鍒掔嚎锛<a href="鐩稿叧鍦板潃" style="text-decoration:none">鍐欎笂浣犳兂鍐欑殑瀛</a>
璐撮煶涔愶细<embed src="阔充箰鍦板潃" width="瀹藉害" height="楂桦害" autostart=false>
璐磃lash: <embed src="flash鍦板潃" width="瀹藉害" height="楂桦害">
璐村奖瑙嗘枃浠讹细<img dynsrc="鏂囦欢鍦板潃" width="瀹藉害" height="楂桦害" start=mouseover>
鎹㈣岋细<br>
娈佃惤锛<p>娈佃惤</p>
铡熷嬫枃瀛楁牱寮忥细<pre>姝f枃</pre>
鎹㈠笘瀛愯儗鏅锛<body background="鑳屾櫙锲剧墖鍦板潃">
锲哄畾甯栧瓙鑳屾櫙涓嶉殢婊氩姩𨱒℃粴锷锛<body background="鑳屾櫙锲剧墖鍦板潃" body bgproperties=fixed>
瀹氩埗甯栧瓙鑳屾櫙棰滆壊锛<body bgcolor="#value">(value鍊艰10)
甯栧瓙鑳屾櫙阔充箰锛<bgsound="鑳屾櫙阔充箰鍦板潃" loop=infinite>
璐寸绣椤碉细<iframe. src="鐩稿叧鍦板潃" width="瀹藉害" height="楂桦害"></iframe>

HTML甯哥敤浠g爜涔嬶细甯稿父浼氶亣鍒扮殑闂棰

镣瑰嚮鍏抽棴绐楀彛
<a href="javascript.:top.window.close();">镣瑰嚮鍏抽棴绐楀彛</a>锛
銆銆
璇烽梾濡备綍铡绘帀涓婚〉鍙抽溃镄勬粴锷ㄦ浔锛
<body scroll="no">

<body style="overflow-y:hidden">
銆銆
濡备綍锅氩埌璁╀竴涓缃戦〉镊锷ㄥ叧闂.
<html>

<head>
<OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
</head>
<body >
杩欎釜绐楀彛浼氩湪10绉掕繃钖庤嚜锷ㄥ叧闂,钥屼笖涓崭细鍑虹幇鎻愮ず. </body>

濡备綍鍦ㄤ笉鍒锋柊椤甸溃镄勬儏鍐典笅鍒锋柊css?
<style>
button{ color:#000000;}
</style>
<button nclick=document.styleSheets[0].rules[0].style.color=钬樷樷樷榬ed钬樷樷樷>镣瑰嚮鎸夐挳鐩存帴淇鏀箂tyle镙囩鹃噷button阃夋嫨绗︿娇鎸夐挳鏀逛负銆銆绾㈣壊</button>
銆銆
璇烽梾濡备綍璁╃绣椤佃嚜锷ㄥ埛鏂帮纻
鍦╤ead閮ㄨ板叆<META. HTTP-EQUIV="Refresh" c>鍏朵腑20涓20绉掑悗镊锷ㄥ埛鏂帮纴浣犲彲浠ユ洿鏀逛负浠绘剰鍊笺
濡备綍璁╅〉闱㈣嚜锷ㄥ埛鏂帮纻
鏂规硶涓锛岀敤refresh
HTML 浠g爜鐗囨靛备笅:
<head>
<meta. http-equiv="refresh" c>
</head>
5琛ㄧず鍒锋柊镞堕棿
[Ctrl+A 鍏ㄩ儴阃夋嫨 鎻愮ず:浣犲彲鍏堜慨鏀归儴鍒嗕唬镰侊纴鍐嶆寜杩愯宂
鏂规硶浜岋纴浣跨敤setTimeout鎺у埗
<img src=/logo.gif>
<script>
function rl(){
document.location.reload()
}
setTimeout(rl,2000)
</SCRIPT>
銆銆
濡备綍璁╄秴阈炬帴娌℃湁涓嫔垝绾
鍦ㄦ簮浠g爜涓镄<HEAD>钬</HEAD>涔嬮棿杈揿叆濡备笅浠g爜锛
<style. type="text/css"> <!--
a { text-decoration: none}
--> </style>
銆銆
璇烽梾濡备綍铡绘帀IE镄勪笂涓嬫粴锷ㄦ浔锛
<body style=钬樷樷樷榦verflow:scroll;overflow-y:hidden钬樷樷樷>
</body>
銆銆
镐庢牱镓嶈兘鎶奟ealPlayer鏂囦欢鍦ㄧ绣椤靛仛涓涓璇曞惉杩炴帴锛
<embed height=25銆src=51js.rm type=audio/x-pn-realaudio-plugin width=50 autostart="false" c>
銆銆
濡备綍鐢╤tml瀹炵幇娴忚埚櫒涓婂悗阃鎸夐挳镄勫姛鑳斤纻
<a href="java script.:history.go(-1)">镣瑰嚮钖庨</a>
鎴栬
<script> history.back() </SCRIPT>

HTML甯哥敤浠g爜涔嬶细浣犱笉涓瀹氱煡阆撶殑鎶宸

ncontextmenu="window.event.returnValue=false" 灏嗗交搴曞睆钄介紶镙囧彸阌
<table borderncontextmenu=return(false)><td>no</table> 鍙鐢ㄤ簬Table

<body nselectstart="return false"> 鍙栨秷阃夊彇銆侀槻姝㈠嶅埗

onpaste="return false" 涓嶅嗳绮樿创

on="return false;" ncut="return false;" 阒叉㈠嶅埗

<link rel="Shortcut Icon"href="favicon.ico"> IE鍦板潃镙忓墠鎹㈡垚镊宸辩殑锲炬爣

<link rel="Bookmark"href="favicon.ico"> 鍙浠ュ湪鏀惰棌澶逛腑鏄剧ず鍑轰綘镄勫浘镙

<inputstyle="ime-mode:disabled"> 鍏抽棴杈揿叆娉

姘歌繙閮戒细甯︾潃妗嗘灦
<script. language="JavaScript"><!--
if (window == top)top.location.href = "frames.htm"; //frames.htm涓烘嗘灦缃戦〉
// --></script>

阒叉㈣浜篺rame.
<SCRIPT. LANGUAGE=JAVASCRIPT><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>

缃戦〉灏嗕笉鑳借鍙﹀瓨涓
<noscript><iframe.src=*.html></iframe></noscript>

镆ョ湅缃戦〉婧愪唬镰
<input type=button value=镆ョ湅缃戦〉婧愪唬镰
onclick="window.location = "view-source:"+"http://www.w3cschool.cn"">

鍒犻櫎镞剁‘璁
<a href="javascript:if(confirm("纭瀹炶佸垹闄ゅ悧?"))location="boos.asp? &areyou=鍒犻櫎&page=1"">鍒犻櫎</a>

灞忚斀锷熻兘阌甋hift,Alt,Ctrl
<script>
function look(){
if(event.shiftKey)
alert("绂佹㈡寜Shift阌!");//鍙浠ユ崲鎴怉LT銆CTRL
}
document.onkeydown=look;
</script>

缃戦〉涓崭细琚缂揿瓨
<META. HTTP-EQUIV="pragma" CONTENT="no-cache">
<META. HTTP-EQUIV="Cache-Control"CONTENT="no-cache, must-revalidate">
<META. HTTP-EQUIV="expires"CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
鎴栬<META. HTTP-EQUIV="expires"CONTENT="0">

镐庢牱璁╄〃鍗曟病链夊嚬鍑告劅锛
<input type=text style="border:1 solid #000000">
<input type=text style="border-left:none;border-right:none; border -top:none; border-bottom: 1 solid#000000"></textarea>

涓嶈佹粴锷ㄦ浔?
璁╃珫𨱒℃病链:
<body style="overflow:scroll;overflow-y:hidden">
</body>銆銆
璁╂í𨱒℃病链:
<body style="overflow:scroll;overflow-x:hidden">
</body>
涓や釜閮藉幓鎺夛纻镟寸亩鍗曚简
<body scroll="no">
</body>

镐庢牱铡绘帀锲剧墖阈炬帴镣瑰嚮钖庯纴锲剧墖锻ㄥ洿镄勮櫄绾匡纻
<a href="#"nFocus="this.blur()"><img src="logo.jpg"border=0></a>

鐢靛瓙闾浠跺勭悊鎻愪氦琛ㄥ崟
<form. name="form1"method="post" action="mailt****@***.com"enctype="text/plain">
<input type=submit>
</form>

鍦ㄦ墦寮镄勫瓙绐楀彛鍒锋柊鐖剁獥鍙g殑浠g爜閲屽备綍鍐欙纻
window.opener.location.reload()

濡备綍璁惧畾镓揿紑椤甸溃镄勫ぇ灏
<body nload="top.resizeTo(300,200);">
镓揿紑椤甸溃镄勪綅缃<bodynload="top.moveBy(300,200);">

鍦ㄩ〉闱涓濡备綍锷犲叆涓嶆槸婊¢摵镄勮儗鏅锲剧墖,𨰾夊姩椤甸溃镞惰儗鏅锲句笉锷
<STYLE>
body
{background-image:url(logo.gif); background-repeat:no-repeat;
background-position:center;background-attachment: fixed}
</STYLE>

妫镆ヤ竴娈靛瓧绗︿覆鏄钖﹀叏鐢辨暟瀛楃粍鎴
<script. language="Javascript"><!--
function checkNum(str){return str.match(//D/)==null}
alert(checkNum("1232142141"))
alert(checkNum("123214214a1"))
// --></script>

銮峰缑涓涓绐楀彛镄勫ぇ灏
document.body.clientWidth; document.body.clientHeight

镐庝箞鍒ゆ柇鏄钖︽槸瀛楃
if (/[^/x00-/xff]/g.test(s)) alert("钖链夋眽瀛");
else alert("鍏ㄦ槸瀛楃");

TEXTAREA镊阃傚簲鏂囧瓧琛屾暟镄勫氩皯
<textarea rows=1 name=s1 cols=27npropertychange="this.style.posHeight=this.scrollHeight">
</textarea>

镞ユ湡鍑忓幓澶╂暟绛変簬绗浜屼釜镞ユ湡
<script. language=Javascript>
function cc(dd,dadd)
{
//鍙浠ュ姞涓婇敊璇澶勭悊
var a = new Date(dd)
a = a.valueOf()
a = a - dadd * 24 * 60 * 60 * 1000
a = new Date(a)
alert(a.getFullYear() + "骞" + (a.getMonth() +1) + "链" + a.getDate() + "镞")
} cc("12/23/2002",2)
</script>

阃夋嫨浜嗗摢涓涓猂adio
<HTML><script. language="vbscript">
function checkme()
for each ob in radio1
if ob.checked then window.alert ob.value
next
end function
</script><BODY>
<INPUT name="radio1" type="radio"value="style" checked>Style.
<INPUT name="radio1" type="radio"value="barcode">Barcode
<INPUT type="button" value="check"nclick="checkme()">
</BODY></HTML>

鑴氭湰姘镐笉鍑洪敊
<SCRIPT. LANGUAGE="JavaScript">
<!-- Hide function killErrors(){return true;} window.onerror = killErrors;// -->
</SCRIPT>

ENTER阌鍙浠ヨ╁厜镙囩Щ鍒颁笅涓涓杈揿叆妗
<input nkeydown="if(event.keyCode==13)event.keyCode=9">