不懂的加QQ:39080717
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/css/model_text.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/lianzai/js/styleswitch1.js"></script>
<script type="text/javascript" src="/js/func.js"></script>
</head>
<body>
<div id="TextInfo">
<div id="bookSelect">選擇字體<a title="小字體" href="javascript:do_font_size('content','12px')">小</a>
<span class="m"><a title="中字體" href="javascript:do_font_size('content','14px')">中</a></span>
<span class="b"><a title="大字體" href="javascript:do_font_size('content','16px')">大</a></span>
<input type="hidden" name="font_size"/>
選擇字色
<select name="font_color" onChange="if(this.options[this.selectedIndex].value!='')
{do_font_color('content',this.options[this.selectedIndex].value);}">
<option style="background-color:Black;color:Black" value=Black>默認</option>
<option style="background-color:#5A5A5A;color:#5A5A5A" value="#5A5A5A">灰色</option>
<option style="background-color:Red;color:Red" value=Red>紅色</option>
<option style="background-color:Yellow;color:Yellow" value=Yellow>黃色</option>
<option style="background-color:Green;color:Green" value=Green>綠色</option>
<option style="background-color:Orange;color:Orange" value=Orange>橙色</option>
<option style="background-color:Purple;color:Purple" value=Purple>紫色</option>
<option style="background-color:Blue;color:Blue" value=Blue>藍色</option>
<option style="background-color:Brown;color:Brown" value=Brown>褐色</option>
<option style="background-color:Teal;color:Teal" value=Teal>墨綠</option>
<option style="background-color:Navy;color:Navy" value=Navy>深藍</option>
<option style="background-color:Maroon;color:Maroon" value=Maroon>赭石</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">粉綠</option>
<option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">淡綠</option>
<option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">黃灰</option>
<option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00">翠綠</option>
<option style="background-color:#D2691E;color: #D2691E" value="#D2691E">綜紅</option>
<option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">磚紅</option>
<option style="background-color:#6495ED;color: #6495ED" value="#6495ED">淡藍</option>
<option style="background-color:#DC143C;color: #DC143C" value="#DC143C">暗紅</option>
<option style="background-color:#FF1493;color: #FF1493" value="#FF1493">玫瑰紅</option>
<option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">紫紅</option>
<option style="background-color:#FFD700;color: #FFD700" value="#FFD700">桔黃</option>
<option style="background-color:#DAA520;color: #DAA520" value="#DAA520">軍黃</option>
<option style="background-color:#808080;color: #808080" value="#808080">煙灰</option>
<option style="background-color:#778899;color: #778899" value="#778899">深灰</option>
<option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">灰藍</option>
</select><select name="bg_color" onChange="if(this.options[this.selectedIndex].value!='')
{do_bg_color('TextInfo',this.options[this.selectedIndex].value);}">
<option style="background-color:#FFFFFF;color:#FFFFFF" value="#FFFFFF">默認</option>
<option style="background-color:Black;color:Black" value="Black">黑色</option>
<option style="background-color:Red;color:Red" value=Red>紅色</option>
<option style="background-color:Yellow;color:Yellow" value=Yellow>黃色</option>
<option style="background-color:Green;color:Green" value=Green>綠色</option>
<option style="background-color:Orange;color:Orange" value=Orange>橙色</option>
<option style="background-color:Purple;color:Purple" value=Purple>紫色</option>
<option style="background-color:Blue;color:Blue" value=Blue>藍色</option>
<option style="background-color:Brown;color:Brown" value=Brown>褐色</option>
<option style="background-color:Teal;color:Teal" value=Teal>墨綠</option>
<option style="background-color:Navy;color:Navy" value=Navy>深藍</option>
<option style="background-color:Maroon;color:Maroon" value=Maroon>赭石</option>
<option style="background-color:#00FFFF;color: #00FFFF" value="#00FFFF">粉綠</option>
<option style="background-color:#7FFFD4;color: #7FFFD4" value="#7FFFD4">淡綠</option>
<option style="background-color:#FFE4C4;color: #FFE4C4" value="#FFE4C4">黃灰</option>
<option style="background-color:#7FFF00;color: #7FFF00" value="#7FFF00">翠綠</option>
<option style="background-color:#D2691E;color: #D2691E" value="#D2691E">綜紅</option>
<option style="background-color:#FF7F50;color: #FF7F50" value="#FF7F50">磚紅</option>
<option style="background-color:#6495ED;color: #6495ED" value="#6495ED">淡藍</option>
<option style="background-color:#DC143C;color: #DC143C" value="#DC143C">暗紅</option>
<option style="background-color:#FF1493;color: #FF1493" value="#FF1493">玫瑰紅</option>
<option style="background-color:#FF00FF;color: #FF00FF" value="#FF00FF">紫紅</option>
<option style="background-color:#FFD700;color: #FFD700" value="#FFD700">桔黃</option>
<option style="background-color:#DAA520;color: #DAA520" value="#DAA520">軍黃</option>
<option style="background-color:#808080;color: #808080" value="#808080">煙灰</option>
<option style="background-color:#778899;color: #778899" value="#778899">深灰</option>
<option style="background-color:#B0C4DE;color: #B0C4DE" value="#B0C4DE">灰藍</option>
</select>
</div>
<div id="content" style="width:90%;margin:0 auto;color:#Black;font-size:14px;line-height:24px;">
文本文字
</div>
</div>
</body></html>
不可以,必須要寫script和CSS腳本