|
把一個帶有 SIZE 屬性的 HTML <FONT> 標記放置在 String 對象中的文本的兩端。
strVariable.fontsize(intSize)
參數 strVariable
必選項。任意的 String 對象或文字。
intSize
必選項。用來指定文本大小的整數值。
說明 下面的示例說明了 fontsize 方法的用法:
var strVariable = "This is a string"; strVariable = strVariable.fontsize(-1); 最后一條語句執行完后,strVariable 的值是:
<FONT SIZE="-1">This is a string</FONT> 有效的整數值取決于 Microsoft JScript 主機。詳細信息請參閱主機的說明書。
不檢查該標記是否已經被應用于該字符串了。
要求 版本 1
|