标签:设置字体 image oid lan white str lin 控制台 inf
static void Main(string[] args)
{
Console.BackgroundColor = ConsoleColor.White;//设置背景色
Console.ForegroundColor = ConsoleColor.Black;//设置字体颜色
Console.WriteLine(" 123");
Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine(" 2222");
Console.BackgroundColor = ConsoleColor.Gray;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(" 3333");
Console.Read();
}
标签:设置字体 image oid lan white str lin 控制台 inf
原文地址:https://www.cnblogs.com/anjun-xy/p/12896061.html