XML与CSS类选择符的使用
Class.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="class.css"?>
<bookdetail>
<book class="A">
<author>曹雪芹</author>
<title>红楼梦</title>
<price>60.00</price>
</book>
<book class="A">
<author>罗贯中</author>
<title>三国演义</title>
<price>40.00</price>
</book>
<book class="M">
<author>琼瑶</author>
<title>一帘幽梦</title>
<price>20.00</price>
</book>
</bookdetail>
Class.css
@charset "utf-8";
/* CSS Document */
bookdetail
{
display:block
}
book.a
{
color:blue;
}
book
{
display:block
}
price
{
font-style:italic
}
相关文档:
xml:
<?xml version="1.0" encoding="utf-8" ?>
<library>
<name>首都图书馆</name>
<address>朝阳区华威桥南</address>
<books>
<book type="math">
<id>0000</id>
</book&g ......
<?xml version="1.0"?>
<BANK_CREATE01>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT=" ......
像上面的一张图片我们该怎么用js 和css + div 很好的应用到我们的项目中呢?
<style>
.InpuRight{
height:20px;background:url(img/msg_bg.png) no-repeat;background-position:0px -250px;
}
.InputError{
width:20px;height:20px;background:url(img/msg_bg.png) no-repeat 0px 0px;
}
.inputLogin{
wid ......
Css常用属性:
1. color, background-color:表示颜色的关键字,16进制数(http://www.clagnut.com/blog/260中提供的color
scheme工具)
2. font-family:该属性的值可以是一组字体,按喜欢程度排序的字体列表。一些中文字体的列表:
Windows的一些:
·
新 ......