样式PHP代码WordPress


Style PHP code WordPress

如何以白色文本输出以下内容?跨越?div吗?

<?php global $current_user;
  get_currentuserinfo();
  echo 'Welcome, ' . $current_user->user_firstname . "'n";
?>

Try

echo 'Welcome,<span class="white-text">' . $current_user->user_firstname . "</span>'n";

css

.white-text{
 color:white;
}

可以使用span和div