★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/bigNouvelle recherche | Portail wanayoo
Your Search Results

    String.prototype.big()

    非標準

    概要

    文字列を、 BIG タグ で囲んだときと同様に、大きなフォントで表示させます。

    注意: HTML5 に於いては既に <big> 要素は廃止されています。
    String のメソッド
    実装されたバージョン JavaScript 1.0
    ECMAScript エディション 定義されていない

    構文

    string.big()

    引数

    無し

    説明

    文書中で文字列を整形して表示するためには、write 、あるいは、writeln メソッドと共に、 big メソッドを使用してください。サーバーサイド JavaScript では、write 関数を使って、文字列を表示してください。

    例

    例: big メソッドの使用

    以下の例では、文字の大きさを変化させるために string オブジェクトのメソッドを使用しています。:

    var worldString = "Hello, world";
    
    document.write( worldString.small() );
    document.write( "<P>" + worldString.big() );
    document.write( "<P>" + worldString.fontsize(7) );

    この例は、以下の HTML と同様の出力を生成します。:

    <SMALL>Hello, world</SMALL>
    <P><BIG>Hello, world</BIG>
    <P><FONTSIZE=7>Hello, world</FONTSIZE>
    

    関連情報

    Document Tags and Contributors

    Contributors to this page: Potappo, teoli, ethertank, Mgjbot
    最終更新者: teoli,