我想问一下如何放置像<font>
这样的标签并使用内联样式来为字体着色
<?php
$member_id = $_SESSION['member_id'];
$sql = mysql_query("SELECT * FROM members WHERE member_id='$member_id'") or die(mysql_error());
$getpic = mysql_fetch_array($sql);
$post = mysql_query("SELECT * FROM members WHERE member_id = '$member_id'")or die(mysql_error());
$row = mysql_fetch_array($post);
echo "<a href='profiletest.php'>"."<img src='image/members/".$getpic['photo']."'width='20px' height='20px'>"." ".$row['firstname']." ".$row['lastname']."</a>";
?>
如何在echo
中格式化字体颜色?
答案 0 :(得分:1)
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-ng-form-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular-animate.js"></script>
<script type="text/javascript">
angular.element(document.getElementsByTagName('head')).append(angular.element('<base href="' + window.location.pathname + '" />'));
</script>
</head>
<body ng-app="formExample">
<script>
angular.module('formExample', [])
.controller('FormController', ['$scope', function($scope) {
$scope.userType = '';
}]);
</script>
<form name="myForm" ng-controller="FormController" class="my-form">
userType: <input name="input" ng-model="userType">
<span ng-show="myForm.input.length>0">show me!</span><br>
</form>
</body>
</html>
将您在引号中提供的所有内容输出为HTML代码,因此如果您有:
echo
它将使用color =#000