( 0. 使用font )
使用CSS样式的方式:
1. 内链样式表 <body style=”background-color:green;margin:0;padding:0;”></body>
2. 嵌入式样式表 <style type=”text/css”></style> 需要将样式放在<head></head>中
3. 引入式样式表 <link rel=”StyleSheet”type=”text/css”>
------------------------------------------------------------------------------
使用font ,例如:
<body>
<h1><font color:red>标题</font></h1>
</bofy>
...............................................................................
内链样式表 ,例如:
<body>
<h1 style="color:red">标题</font></h1>
</bofy>
...............................................................................
嵌入式样式表 ,例如:
<head>
<style type="text/css">
</style>
<head>
...............................................................................
引入式样式表 ,例如:
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<head>
...............................................................................
联系客服