此方法會(huì)導(dǎo)致就好像它是在一個(gè)<font size="size">標(biāo)記的字符串顯示在規(guī)定的大小
語(yǔ)法
string.fontsize( size )
下面是參數(shù)的詳細(xì)信息:
返回值:
例子:
<html><head><title>JavaScript String fontsize() Method</title></head><body><script type="text/javascript">var str = new String("Hello world");alert(str.fontsize( 3 ));</script></body></html>
這將產(chǎn)生以下結(jié)果:
<font size="3">Hello world</font>
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注