<input type="text" id="Cs" value="123" /><script type="text/javascript">var Js_Cs= document.getElementById("Cs");Js_Cs.readOnly=true;</script>PS:此时JavaScript代码要写到<input>;