1.2 定义内部样式块对象
•
你可以在你的 html 文档的 <html> 和 <body> 标记之间插入一个
<style>...</style> 块对象。 定义方式请参阅样式表语法。示例如
下:
<html><head><title> 文档标题 </title>
<style type="text/css">
<!—
body {font:10pt "arial"}h1 {color:gray}h2 {color:red}
p {color:silver}
-->
</style></head><body></body></html>
•
请注意,这里将 style 对象的 type 属性设置为 "text/css" ,是允许
不支持这类型的浏览器忽略样式表单。
评论0