zoukankan      html  css  js  c++  java
  • 色块

    string[] ColorStep = new string[] { "00""33""66""99""cc""ff" };
            
    //LoadAtc();
            Response.Write("<style>");
            Response.Write(
    "#colorwindow{border-bottom:1px solid black;}");
            Response.Write(
    "#colorwindow span{15px;height:15px;border-right:1px solid black;border-top:1px solid #333333;}");
            Response.Write(
    "</style>");
            
    //Response.Write("<table style='border:1px solid #333333;' cellpadding='0' cellspacing='0' id=\"colorwindow\">");


            
    //int i = 0;
            for (int i = 0; i < 2; i++)
            {
                
    for (int r = 0 ; r < ColorStep.Length; r++)
                {
                    Response.Write(
    "<div>");
                    Response.Write(
    "<span id=\"colorwindow\">");
                    
    for (int g = ColorStep.Length * i / 2; g < ColorStep.Length * (i + 1/ 2; g++)
                    {
                        
    for (int b = 0; b < ColorStep.Length; b++)
                        {
                            Response.Write(
    "<span style=\"background-color:#");
                            Response.Write(ColorStep[g]);
                            Response.Write(ColorStep[b]);
                            Response.Write(ColorStep[r]);

                            Response.Write(
    "\">");
                            Response.Write("</span>");
                        }
                    }
                    Response.Write(
    "</span>");
                    Response.Write(
    "</div>");
                }
            }
            Response.Write(
    "</table>");
  • 相关阅读:
    浅谈GET和POST请求方式
    浅淡建立bitmap实例
    从.NET1.1升级到.NET2.0时出现的PInvokeStackImbalance错误
    为RichTextBox添加快捷功能菜单(复制,粘贴,全选等)
    针对解决sql server数据库中不区分大小写问题.
    <转>用C#创建可拖动窗体
    如何:对 Windows 窗体控件进行线程安全调用
    正则
    <转>反射的第二部分:Emit
    『励志』一些普通又具有深刻哲理的警句(转载)
  • 原文地址:https://www.cnblogs.com/goodspeed/p/251069.html
Copyright © 2011-2022 走看看