改变批处理中部分字体的颜色

怎样写一个批处理能在屏幕上显示出图上的文字。并且使得红色方框中的文字的颜色为红色的。

可以多个颜色,

@echo off

chcp 437>nul&&graftabl 936>nul

echo %WinDir%\System32\ANSI.SYS /x>color

@echo.

command /cecho 哈哈哈哈

command /cecho                                   养眼啊

pause

温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2017-12-15
看看这个贴

按照你的要求写的,你自己再改改边框。

@echo off
chcp 437>nul&&graftabl 936>nul
if not exist CONFIG.NT copy %WinDir%\System32\CONFIG.NT CONFIG.NT
cls
echo DEVICE=%WinDir%\System32\ANSI.SYS /x >%WinDir%\System32\CONFIG.NT
command /cecho 
command /cecho ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
command /cecho ┃ 请做一个选择:1、入队 2、出队 3、打印队列 4、退出程序  ┃
command /cecho ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
copy CONFIG.NT %WinDir%\System32\CONFIG.NT 1>nul 2>nul
copy CONFIG.NT %WinDir%\System32\CONFIG.NT 1>nul 2>nul
del CONFIG.NT
set /p select=请输入你的选择:
if %select%==1 goto rudui
if %select%==2 goto chudui
if %select%==3 goto dayinduilie
if %select%==4 exit本回答被提问者采纳
第2个回答  2010-02-09
批处理中只能有背景和文字2种颜色
第3个回答  2015-11-15
  批处理中部分字体的颜色代码:
   1、font标签可直接使用color来调整颜色,如:
<font color="#FF0000">红色</font>

2、所有可加载文字的标签可以直接使用style中的color来调整颜色,如:
<span style="color:#FFFFFF">白色</span>

3、可以通过style事先设置一个颜色,然后通过class来调用,如
<style type="text/css">.green{color:#33FF00}</style>
<div class="green">绿色</div>

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网