HTMLの <font size="..."> タグで囲まれた文字列を返します.
stringObject.fontsize(size)
以下にfontsizeメソッドを使用したサンプルコードを示します.
<html>
<head>
<title>fontsizeメソッドのサンプルコード</title>
</head>
<body>
<script type="text/javascript" language="javascript">
var str = "Snoopy";
alert(str.fontsize(2));
</script>
</body>
</html>
以下のボタンをクリックするとサンプルコードが実行されます.
スポンサード リンク