急,javascript实现字体加粗,在线等! 动态改变css样式,比如:document.getElementById("hehe").style.fontWeight='bold'; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html> <head> </head> <body> <input type=button value="加粗" onClick="changeStyle();";> <textarea id="hehe"> ahdfaljfasdf as </textarea> </body> </html><script>function changeStyle(){ document.getElementById("hehe").style.fontWeight='bold';}</script> 用document.getElementById("hehe").style.fontWeight='bold';就可以了!~ 谢谢各位高手,解决了,zou_wei_forever,jeff__lueny ,DiscussQuestions ,double22822 都是正确的,散分了。 关于struts的并发及线程安全 spring与hibernate整合问题 java安装 XML解析器对转义字符的处理问题 改变 tomcat5.5 的localhost默认访问页面? 亲人呐!MDB怎么不运行? 100分不够再加! 请高手介绍几本j2ee/ejb的初、中级教程 关于TableDataSet与Provider与Resovler的问题。谢谢各位了。 请教一个CMP的问题! 【书籍推荐】本人希望了解下网站架构,希望推荐些好书 multibox中的值怎么取 如何做struts+Hibernate异常处理
<head>
</head>
<body>
<input type=button value="加粗" onClick="changeStyle();";>
<textarea id="hehe">
ahdfaljfasdf as
</textarea>
</body>
</html>
<script>
function changeStyle()
{
document.getElementById("hehe").style.fontWeight='bold';
}
</script>