概述
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{width: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> " );
// LoadAtc();
Response.Write( " <style> " );
Response.Write( " #colorwindow{border-bottom:1px solid black;} " );
Response.Write( " #colorwindow span{width: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> " );
最后
以上就是淡定夏天为你收集整理的色块的全部内容,希望文章能够帮你解决色块所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复