英['k?l?(r)] 美[?k?l?]
n.<美>色、色;肌の色、顔色、血の色;色素、染料;エッセンス
v .<Beauty>カラーリング; 色の変更; ホワイトウォッシュ、レンダリング、カラーリング; 赤面
三人稱単數(shù): 色 複數(shù)形: カラー 現(xiàn)在分詞: カラーリング 過去形: 色付き過去分詞: 色付き
JavaScriptのカラー屬性 構(gòu)文
関數(shù):テキストの色を設(shè)定します
構(gòu)文: Object.style.color=color
JavaScriptのカラー屬性 例
<html> <head> <script type="text/javascript"> function setColor() { document.getElementById("p1").style.color="#ff0000"; document.getElementById("p2").style.color="magenta"; } </script> </head> <body> <p id="p1">This is an example paragraph</p> <p id="p2">This is also an example paragraph</p> <input type="button" onclick="setColor()" value="Change color of text" /> </body> </html>
インスタンスの実行 ?
[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します