1.css
内部css
语法:
声明样式表:
标记名{属性1:值1;属性2:值2……}
插入内部css
发出指令
<?xml-stylesheet type="text/css"?>
<HTML:STYLE xmlns:HTML=名称空间名>
……样式表
</HTML:STYLE>
或者
l <根元素 xmlns:HTML=名称空间>
l <HTML:STYLE>
l <元素>
l …
l </元素>
l </根元素>
实例
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css"?>
<bookinfo xmlns:HTML="http://www.w3.org/Style/CSS">
<HTML:STYLE>
title{
font-size:40px;
color:blue;
margin-bottom:5px;
text-aglin:center;
}
author,publish,price{
font-size:40px;
color:blue;
margin-bottom:5px;
text-aglin:center;
}
</HTML:STYLE>
<title>三国演义</title>
<author>罗贯中</author>
<publish>
<publisher>文艺出版社</publisher>
<price>10.00</price>
</publish>
</bookinfo>