2008-07-18から1日間の記事一覧
時間ないから3分で。 var elm = document.createElement("<div style='background-color: blue; height: 100px; width: 100px;'></div>"); document.body.appendChild(elm); これで、画面に青い100pxのボックスが登場します。 DOMの仕様にはない用法です(MSDNには載ってる)。 document.createElement("<div style='background-color: blue; height: 100px; width: 100px;'></div>