标题:js如何设置字体颜色
只看楼主
yuzhongwusan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-11-25
 问题点数:0 回复次数:2 
js如何设置字体颜色
  <div id='b'>b.c</div>
    <script type='text/javascript'>

        var b=document.getElementById("b");
        b.style.fontcolor="red";
   
  </script>
  b.style.fontcolor="red"; 为什么错了啊
搜索更多相关主题的帖子: 字体 颜色 
2010-11-26 15:07
sclorg
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:55
专家分:152
注 册:2010-4-16
得分:0 
b.style.fontcolor="red";
--》
b.style.color="red";
2010-11-26 15:29
yuzhongwusan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2010-11-25
得分:0 
谢谢。。
2010-11-29 09:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-326969-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.988621 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved