0
如何在白色文本中輸出以下內容?跨度? DIV?樣式PHP代碼WordPress
<?php global $current_user;
get_currentuserinfo();
echo 'Welcome, ' . $current_user->user_firstname . "\n";
?>
如何在白色文本中輸出以下內容?跨度? DIV?樣式PHP代碼WordPress
<?php global $current_user;
get_currentuserinfo();
echo 'Welcome, ' . $current_user->user_firstname . "\n";
?>
嘗試
echo 'Welcome,<span class="white-text">' . $current_user->user_firstname . "</span>\n";
CSS
.white-text{
color:white;
}
您可以使用span和div。
看到編輯,謝謝:) – Patrick 2013-03-08 04:53:27