512色色谱图 Post author:xfxia Post published:2023年9月7日 Post category:其他 代码如下: <HTML> <HEAD> <TITLE>512色色谱图</TITLE> <META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=gb2312″> </HEAD> <BODY BGCOLOR=”#FFFFFF”> <CENTER> <h2>512色色谱图</h2> <SCRIPT LANGUAGE=”JavaScript”> //定义数组对象 clr=new Array(’00’,’20’,’40’,’60’,’80’,’a0′,’c0′,’ff’); //创建8个8行8列的表格 for (i=0;i<8;i++) { //创建表格,单元格内填充距8像素 document.write(“<table border=1 cellpadding=8>”); for (j=0;j<8;j++) { document.write(“<tr>”); for (k=0;k<8;k++) { //设置表格单元的背景颜色 document.write(‘<td bgcolor=”#’+clr[i]+clr[j]+clr[k]+'”>’); //设置文字颜色 document.write(‘<tt><font color=”#’+clr[7-i]+clr[7-j]+clr[7-k]+'”> ‘); //显示16进制颜色值 document.write(‘#’+clr[i]+clr[j]+clr[k]+’ </font></tt></td>’); } document.write(“</tr>”); } document.write(“</table><br>”); } </SCRIPT> </CENTER> </BODY> </HTML> [Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码] 版权声明:本文为AppleBBS原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 原文链接:https://blog.csdn.net/AppleBBS/article/details/380162 你可能也喜欢 idea 启动模块时报错:Error running GatewayApplication. Command line is too long. Shorten the command line vi spring boot的yaml配置文件用法 SpringBoot字段注入和构造函数注入的区别 Hyperledger Fabric 应用实战(3)–配置文件core.yaml 程序员如何创业? js实现小图切换成大图–美女相册小案例 输入2个整数,输出它们的和,差,乘积和准确的商 TFS 使用文档 – 安装篇 pip/pip3安装第三方库时安装失败,统一处理思路 Spring 参考资料 CesiumForUnreal之3DTileset点选拾取属性与单体高亮 做文件上传下载时报这个错com.alibaba.fastjson.JSONException: illegal identifier : \ Ubuntu增加异构的包管理在x86上安装arm相关的二进制包 asp.net sql server错误:Timeout expired. The timeout period elapsed prior to completion of the operatio windows pip安装方法_Windows 黑科技软件,让任意窗口以“画中画”模式置顶显示… Centos 7 中文输入法安装方法 STM32F103ZET6—复位 highcharts中隐藏右下角的官网链接 [编程题] 小易喜欢的数列 常用空格转义字符