标签:document sel element setw text var javascrip get set
<script type="text/javascript">
var sel = document.getElementById("s");
sel.style.width = ((sel.offsetWidth < 100) ? ‘100‘ : ((sel.offsetWidth > 200)? ‘200‘ : sel.offsetWidth));
</script>
标签:document sel element setw text var javascrip get set
原文地址:http://www.cnblogs.com/258w/p/6306134.html