我有这个
<h2 id="caption">Hello World</h2>
<select name="font" id="Font">
<option onClick="document.getElementById('caption').style.fontFamily = 'courier';" value="courier">Courier</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'georgia';" value="georgia" >Georgia</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'palatino';" value="palatino">Palatino Linotype</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'times';" value="times">Times New Roman</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'arial';" value="arial">Arial</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'comic';" value="comic">Comic Sans</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'impact';" value="impact">Impact</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'lucida';" value="lucida">Lucida Console</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'trebuchet';" value="Trebuchet">Trebuchet</option>
<option onClick="document.getElementById('caption').style.fontFamily = 'tahoma';" value="tahoma">Tahoma</option>
</select>
这不会改变字体样式,有什么问题?