有一个文本域,我想让它里边的字显示为粗体,通过点击"加粗"按钮来实现,应该怎样写?谢谢

rt
---------------------------------------------------------------

1<input name="bold" value="hehe"/>
1<input onclick="bold.style.fontWeight='bold'" type="button" value="加粗"/>
Published At
Categories with Web编程
comments powered by Disqus