使用CSS:lang选择器为每个<p>元素设置CSS的lang属性值的样式。您可以尝试运行以下代码来实现:lang选择器
<!DOCTYPE html>
<html>
<head>
<style>
p:lang(fr) {
background: greeb;
}
</style>
</head>
<body>
<p>This is my country</p>
<p lang = "fr">C'est mon pays</p>
<p>French is the language of France</p>
</body>
</html>