首先在html里面插入一个按钮,然后设置CSS样式字体颜色style="color: white“;,具体代码为:
<!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 http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><input type="button" style="background: red; color: white;" value="提交" /><!--background: red设置背景颜色为红色,color: white设置字体的按钮里面字体的颜色为白色 --></body></html>按钮里面字体的颜色为白色,所达到的效果图为: