< html > < head > < title > study 022 </ title > </ head > < body > < form id ="form1" runat ="server" > < div > < hr id ="hr1" /> </ div > </ form > < script type ="text/javascript" language ="javascript" > ... var hr = document.getElementById('hr1');hr.style.cssText = "text-algin:center;width:50%;";//相当//hr.style.width = "50%"; //hr.style.textAlign = 'center'; </ script > </ body > </ html >