HTML之背景颜色的改变
2015-11-01 09:23
417 查看
<!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=utf-8" /> <title>背景颜色的改变</title> </head> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>radio颜色选择器</title> <body> <FORM METHOD="POST" NAME="bgcolor"> <font color="silver">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor=' '"><BR> <font color="lightslategray">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor='lightslategray'"><BR> <font color="azure">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor='azure'"><BR> <font color="lightgreen">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor='lightgreen'"><BR> <font color="lightblue">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor='lightblue'"><BR> <font color="white">点击变换背景颜色</font><input type="radio" name="bgcolor" ONCLICK="document.bgColor='white'"><BR> </form> </body> </html> </body> </html>
<!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=utf-8" /> <title>背景颜色的改变</title> </head>
执行效果图如下:
相关文章推荐
- labview嵌入html
- html模板
- iPhone 6是苹果最畅销机型 市场占有为30%
- html中offsetTop、clientTop、scrollTop、offsetTop各属性介绍
- sublime3快捷 输入html
- HTML表单元素
- HTML特殊字符显示
- HTML语言基础
- 织梦文章生成html有标题但是内容部分空白问题
- 使用html添加链接
- HTML文件第一行是什么东东
- Wex5-util
- Wex5-util
- HTML标签之<q> <blockquote>
- HTML页面加载和解析流程
- HTML符号大全
- 一份标准的HTML文档必须有的HTML标签
- html跳转倒计时
- HTML抽屉效果的实现与展示
- HTML超链接 锚点