1. 效果 2. 代码 {ui->methodText->append("<font size=9 color=green> dddddddddd </font>");ui->methodText->append("<font size=9 color=red> vvvvvvvvvv </font>"); }