<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<title>缔友计算机信息技术有限公司--html设置背景色和字体颜色--兼容各浏览器Setting the bgColor & fgColor Properties</title>
<meta name="description" content="涂聚文,捷为工作室,经营信息流,物流,人力资源流,资本流的系统解决方案的开发与设计和服务,geoVI studio.Geovin Du. Systems Solution to Fund flow,and Information flow,and Material flow,and Control flow,and Human Resource.Applied software development,design and service。.">
<meta name="Robots" content="all index follow ">
<meta name="Author" content="涂聚文" />
<link rel="shortcut icon" href="http://www.dupcit.com/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://www.dupcit.com/favicon.ico" type="image/ico" />
<link rel="Bookmark" href="http://www.dupcit.com/favicon.ico">
</head>
<body>
<DIV><p>
字体颜色
<form>
<input type="button"
value="White"
onClick="document.bgColor = '#FFFFFF';document.fgColor='#FF0000';">
<input type="button"
value="Green"
onClick="document.bgColor = '#008000';document.fgColor='#FFFF00';">
<input type="button"
value="Blue"
onClick="document.bgColor = '#0000FF';document.fgColor='#FFFFFF';">
<input type="button"
value="Red"
onClick="document.bgColor = '#FF0000';document.fgColor='#FFFF00';">
</form></p>
</DIV>
<FORM>
<H3>BackGround Colors</H3>
<INPUT TYPE="button" VALUE=" Red " onClick="document.bgColor = 'red'">
<INPUT TYPE="button" VALUE=" White " onClick="document.bgColor = 'white'">
<H3>ForeGround Colors</H3>
<INPUT TYPE="button" VALUE=" Blue " onClick="document.fgColor = 'blue'">
<INPUT TYPE="button" VALUE=" Green " onClick="document.fgColor = 'green'">
</FORM>
</body>
</html>

如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛