下面是CSS设置文章字体颜色为白色的代码。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>页面标题</title>
<style type="text/css">
.abc{color: white;background: red;width: 200px;height: 100px;}
</style>
</head>
<body>
<div class="abc">设置字体白色</div>
</body>
</html>
css中,可以使用color属性来设置文章的颜色。