精华区 [关闭][返回]

当前位置:月光软件>>讨论区精华>>〖软件开发〗>>● ASP>>★JSP的参考★>>JScript 方法>>JScript 语言参考: fontsize 方法

主题:JScript 语言参考: fontsize 方法
发信人: wuga(冰雨梦)
整理人: wuga(2001-12-02 10:09:06), 站内信件
描述

    把一个带有 SIZE 属性的 HTML  标记放置在 String 对象中的文本的两端。

语法

    strVariable.fontsize(intSize)

    "String Literal".fontsize(intSize) 

    intSize 参数是一个整数值,用来决定文本的大小。 

说明

    下面的示例说明了 fontsize 方法的用法: 

    var strVariable = "This is a string"; 

    strVariable = strVariable.fontsize(-1);

    最后一条语句执行完后,strVariable 的值是:
 
    <FONT SIZE="-1">This is a string</FONT>

    有效的整数值取决`于 Microsoft JScript 主机。请参阅主机的说明书来获得更多的信息。 

不检查该标记是否已经被应用于该字符串了。 

[关闭][返回]






转载请注明:转载自 月光程序代码网 [ http://www.moon-soft.com ]