Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : xml

Flex Óë servlet ͨÐÅ ¡¾xml¡¿

String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
//response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
String xml = "<user>" +
"<username>Ìθç</username>" +
"</user>";
response.getWriter().println(xml);
import flash.trace.Trace;
private var loader:URLLoader = new URLLoader();
private function asCallHandler():void{
// URL
var url:String = "http://localhost/app01/getUser";
// ²ÎÊý
var args:URLVariables = new URLVariables();
args.userId = 1;
// RequestÇëÇó
var request:URLRequest = new URLRequest(url);
request.data = args;// °ó¶¨²ÎÊý
//ÇëÇó¼ÓÔØÆ÷

loader.addEventListener(Event.COMPLETE,handleServerResponse);
loader.load(request);//·¢ËÍÇëÇó
}
private function handleServerResponse(e:Event):void{
trace("User data is loaded");
//½«·µ»ØµÄÊý¾Ý½âÎö³Éxml
var resultXML : XML = new XML(lo ......

Flex Óë servlet ͨÐÅ ¡¾xml¡¿

String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
//response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
String xml = "<user>" +
"<username>Ìθç</username>" +
"</user>";
response.getWriter().println(xml);
import flash.trace.Trace;
private var loader:URLLoader = new URLLoader();
private function asCallHandler():void{
// URL
var url:String = "http://localhost/app01/getUser";
// ²ÎÊý
var args:URLVariables = new URLVariables();
args.userId = 1;
// RequestÇëÇó
var request:URLRequest = new URLRequest(url);
request.data = args;// °ó¶¨²ÎÊý
//ÇëÇó¼ÓÔØÆ÷

loader.addEventListener(Event.COMPLETE,handleServerResponse);
loader.load(request);//·¢ËÍÇëÇó
}
private function handleServerResponse(e:Event):void{
trace("User data is loaded");
//½«·µ»ØµÄÊý¾Ý½âÎö³Éxml
var resultXML : XML = new XML(lo ......

ʹÓÃxml flashÓëASPͨÐŵļ¸ÖÖ·½·¨

FlashÖеÄXML¶ÔÏóÒ²Óз½·¨¿ÉÒÔ½«XMLÊý¾ÝÏò·þÎñÆ÷·¢ËÍ¡£¼´sendºÍsendAndLoad¡£send·½·¨Ïòij¸ö URL ´«µÝ XML ¶ÔÏ󣬷µ»ØµÄÐÅÏ¢¶¼±»·¢Ë͵½ÁíÍâÒ»¸öä¯ÀÀÆ÷´°¿Ú£»sendAndLoad ·½·¨Ïòij¸ö URL ·¢ËÍÒ»¸ö XML ¶ÔÏó¡£·µ»ØµÄÐÅÏ¢¶¼·ÅÔÚÒ»¸öXML¶ÔÏóÖС£
ÔÚijÖ̶ֳÈÉÏ£¬ XMLµÄsend·½·¨ºÍsendAndLoad·½·¨ÀàËÆÓÚloadVars¶ÔÏóµÄsend·½·¨ºÍsendAndLoad·½·¨¡£
ÒÔloginϵͳΪÀý¡£Ê×ÏȽ«FlashÖÐÐèÒª´«Ë͵ÄÐÅÏ¢£¨Óû§ÃûºÍÃÜÂ룩ת»»³ÉÒ»¸ö XML ¶ÔÏó£¬È»ºó½«Êý¾Ý×÷Ϊ XML Îĵµ·¢Ë͵½·þÎñÆ÷¶Ë½Å±¾¡£ÔÚ·þÎñÆ÷¶ËÎÒÃÇ»¹ÊÇ´ÓÊý¾Ý¿âÖÐÌáÈ¡ÏàÓ¦µÄÊý¾Ý£¬ÔÚ·þÎñÆ÷¶Ë½Å±¾ÖжÔÕâÁ½ÖÖÐÅÏ¢ÑéÖ¤¡£×îºó½«ÑéÖ¤³É¹¦µÄÐÅÏ¢Ò²ÒÔXML¸ñʽ´«ËÍ»ØFlash¡£Í¼1ÏÔʾÁËÕâÖֽṹ£º
Ê×ÏÈ£¬¿´¿´Êý¾Ý¿âµÄ½á¹¹£¬ºÜ¼òµ¥£¬ÓÃAccess×öÒ»¸öÃûΪlogin.mdb£¨´æ´¢µ½Í¬swf£¬aspÎļþͬͬһĿ¼Ï£©µÄÊý¾Ý¿âÎļþ£¬È»ºóн¨Ò»¸öÃûΪadminµÄ±í£¬µÚÒ»¸ö×Ö¶ÎÃû³ÆÊÇ”id”£¬Êý¾ÝÀàÐÍÊÇ×Ô¶¯±àºÅ£»µÚ¶þ¸ö×Ö¶ÎÃû³ÆÊÇusername£¬Êý¾ÝÀàÐÍÊÇÎı¾¡£×ֶδóС¸ÄΪ16£»µÚÈý¸ö×Ö¶ÎÃû³ÆΪpassword£¬Êý¾ÝÀàÐÍÊÇÎı¾£¬×ֶδóСҲ¸ÄΪ16¡£±í½á¹¹Èçͼ2Ëùʾ£º
½Ó×Å£¬ÎÒÃÇÓÃFlash×öÒ»¸öµÇ¼½çÃ档ΪÁËʹµÃÕâ¸ö½çÃæÔÚÆäËûµØ·½Ò²ÄÜÓõ½£¬¿ÉÒÔ½«ËùÓеÄÔª¼þ¶¼ ......

ʹÓÃxml flashÓëASPͨÐŵļ¸ÖÖ·½·¨

FlashÖеÄXML¶ÔÏóÒ²Óз½·¨¿ÉÒÔ½«XMLÊý¾ÝÏò·þÎñÆ÷·¢ËÍ¡£¼´sendºÍsendAndLoad¡£send·½·¨Ïòij¸ö URL ´«µÝ XML ¶ÔÏ󣬷µ»ØµÄÐÅÏ¢¶¼±»·¢Ë͵½ÁíÍâÒ»¸öä¯ÀÀÆ÷´°¿Ú£»sendAndLoad ·½·¨Ïòij¸ö URL ·¢ËÍÒ»¸ö XML ¶ÔÏó¡£·µ»ØµÄÐÅÏ¢¶¼·ÅÔÚÒ»¸öXML¶ÔÏóÖС£
ÔÚijÖ̶ֳÈÉÏ£¬ XMLµÄsend·½·¨ºÍsendAndLoad·½·¨ÀàËÆÓÚloadVars¶ÔÏóµÄsend·½·¨ºÍsendAndLoad·½·¨¡£
ÒÔloginϵͳΪÀý¡£Ê×ÏȽ«FlashÖÐÐèÒª´«Ë͵ÄÐÅÏ¢£¨Óû§ÃûºÍÃÜÂ룩ת»»³ÉÒ»¸ö XML ¶ÔÏó£¬È»ºó½«Êý¾Ý×÷Ϊ XML Îĵµ·¢Ë͵½·þÎñÆ÷¶Ë½Å±¾¡£ÔÚ·þÎñÆ÷¶ËÎÒÃÇ»¹ÊÇ´ÓÊý¾Ý¿âÖÐÌáÈ¡ÏàÓ¦µÄÊý¾Ý£¬ÔÚ·þÎñÆ÷¶Ë½Å±¾ÖжÔÕâÁ½ÖÖÐÅÏ¢ÑéÖ¤¡£×îºó½«ÑéÖ¤³É¹¦µÄÐÅÏ¢Ò²ÒÔXML¸ñʽ´«ËÍ»ØFlash¡£Í¼1ÏÔʾÁËÕâÖֽṹ£º
Ê×ÏÈ£¬¿´¿´Êý¾Ý¿âµÄ½á¹¹£¬ºÜ¼òµ¥£¬ÓÃAccess×öÒ»¸öÃûΪlogin.mdb£¨´æ´¢µ½Í¬swf£¬aspÎļþͬͬһĿ¼Ï£©µÄÊý¾Ý¿âÎļþ£¬È»ºóн¨Ò»¸öÃûΪadminµÄ±í£¬µÚÒ»¸ö×Ö¶ÎÃû³ÆÊÇ”id”£¬Êý¾ÝÀàÐÍÊÇ×Ô¶¯±àºÅ£»µÚ¶þ¸ö×Ö¶ÎÃû³ÆÊÇusername£¬Êý¾ÝÀàÐÍÊÇÎı¾¡£×ֶδóС¸ÄΪ16£»µÚÈý¸ö×Ö¶ÎÃû³ÆΪpassword£¬Êý¾ÝÀàÐÍÊÇÎı¾£¬×ֶδóСҲ¸ÄΪ16¡£±í½á¹¹Èçͼ2Ëùʾ£º
½Ó×Å£¬ÎÒÃÇÓÃFlash×öÒ»¸öµÇ¼½çÃ档ΪÁËʹµÃÕâ¸ö½çÃæÔÚÆäËûµØ·½Ò²ÄÜÓõ½£¬¿ÉÒÔ½«ËùÓеÄÔª¼þ¶¼ ......

ʹÓÃxml flashÓëASPͨÐŵļ¸ÖÖ·½·¨

FlashÖеÄXML¶ÔÏóÒ²Óз½·¨¿ÉÒÔ½«XMLÊý¾ÝÏò·þÎñÆ÷·¢ËÍ¡£¼´sendºÍsendAndLoad¡£send·½·¨Ïòij¸ö URL ´«µÝ XML ¶ÔÏ󣬷µ»ØµÄÐÅÏ¢¶¼±»·¢Ë͵½ÁíÍâÒ»¸öä¯ÀÀÆ÷´°¿Ú£»sendAndLoad ·½·¨Ïòij¸ö URL ·¢ËÍÒ»¸ö XML ¶ÔÏó¡£·µ»ØµÄÐÅÏ¢¶¼·ÅÔÚÒ»¸öXML¶ÔÏóÖС£
ÔÚijÖ̶ֳÈÉÏ£¬ XMLµÄsend·½·¨ºÍsendAndLoad·½·¨ÀàËÆÓÚloadVars¶ÔÏóµÄsend·½·¨ºÍsendAndLoad·½·¨¡£
ÒÔloginϵͳΪÀý¡£Ê×ÏȽ«FlashÖÐÐèÒª´«Ë͵ÄÐÅÏ¢£¨Óû§ÃûºÍÃÜÂ룩ת»»³ÉÒ»¸ö XML ¶ÔÏó£¬È»ºó½«Êý¾Ý×÷Ϊ XML Îĵµ·¢Ë͵½·þÎñÆ÷¶Ë½Å±¾¡£ÔÚ·þÎñÆ÷¶ËÎÒÃÇ»¹ÊÇ´ÓÊý¾Ý¿âÖÐÌáÈ¡ÏàÓ¦µÄÊý¾Ý£¬ÔÚ·þÎñÆ÷¶Ë½Å±¾ÖжÔÕâÁ½ÖÖÐÅÏ¢ÑéÖ¤¡£×îºó½«ÑéÖ¤³É¹¦µÄÐÅÏ¢Ò²ÒÔXML¸ñʽ´«ËÍ»ØFlash¡£Í¼1ÏÔʾÁËÕâÖֽṹ£º
Ê×ÏÈ£¬¿´¿´Êý¾Ý¿âµÄ½á¹¹£¬ºÜ¼òµ¥£¬ÓÃAccess×öÒ»¸öÃûΪlogin.mdb£¨´æ´¢µ½Í¬swf£¬aspÎļþͬͬһĿ¼Ï£©µÄÊý¾Ý¿âÎļþ£¬È»ºóн¨Ò»¸öÃûΪadminµÄ±í£¬µÚÒ»¸ö×Ö¶ÎÃû³ÆÊÇ”id”£¬Êý¾ÝÀàÐÍÊÇ×Ô¶¯±àºÅ£»µÚ¶þ¸ö×Ö¶ÎÃû³ÆÊÇusername£¬Êý¾ÝÀàÐÍÊÇÎı¾¡£×ֶδóС¸ÄΪ16£»µÚÈý¸ö×Ö¶ÎÃû³ÆΪpassword£¬Êý¾ÝÀàÐÍÊÇÎı¾£¬×ֶδóСҲ¸ÄΪ16¡£±í½á¹¹Èçͼ2Ëùʾ£º
½Ó×Å£¬ÎÒÃÇÓÃFlash×öÒ»¸öµÇ¼½çÃ档ΪÁËʹµÃÕâ¸ö½çÃæÔÚÆäËûµØ·½Ò²ÄÜÓõ½£¬¿ÉÒÔ½«ËùÓеÄÔª¼þ¶¼ ......

Java and XML_¶ÁÊé±Ê¼Ç_2010 05 19

2010-05-19
Æß¡¢×ª»»XML
l  ¿ÉÀ©Õ¹Ñùʽ±íÓïÑÔ£¨XSL£©£¬±»¶¨Òå³ÉÁËÒ»ÖÖ±íʾÑùʽ±íµÄÓïÑÔ¡£ÊǹÜÀíÔõÑù´Ó¸ñʽAת»»Ò»¸öÎĵµµ½¸ñʽBµÄ¹æ·¶ÓïÑÔ¡£¸ÃÓïÑÔ×é¼þÓÃÓÚ¹ÜÀíת»»½á¹¹ÖеĴ¦ÀíºÍÉí·ÝÑéÖ¤
n  XSLÊÇÒ»ÖÖÓÃÀ´×ª»»XMLÎĵµµÄÓïÑÔ¡£
n  XSLÊÇÒ»¸öÓÃÀ´Ö¸¶¨XMLÎĵµ¸ñʽµÄ´Ê»ã¿â¡£
l  XSLºÍÊ÷ÐÎÃèÊö£ºÕâ¸öÓÃXSL¶¨ÒåµÄ¹æÔò±¾ÉíÒѱ»Ê÷ÐνṹËùÔ¼Êø£¬Éæ¼°µ½ÁËXMLÎĵµ²ã´Î½á¹¹µÄ¼òµ¥¹ý³Ì¡£×î´óÓŵãÊÇËüÔÊÐíXMLÎĵµÖеÄÏà¹Ø¼¯ºÏÔªËر£³ÖÏàͬ²Ù×÷
l  ¸ñʽ»¯¶ÔÏ󣺼¸ºõËùÓеÄXSL˵Ã÷¶¼Ó붨Òå¸ñʽ»¯¶ÔÏó£¨formatting object£©Óйء£Ò»¸öÊôÐԺʹʻãµÄ´ó¼¯ºÏ×é³ÉÁ˸ñʽ»¯¶ÔÏóÄܹ»Ê¹ÓõÄÌØÕ÷¼¯ºÏ¡£ÕâÒ²°üÀ¨ÁËÄܹ»±»¶ÔÏó¿ÉÊÓ»¯ÇøÓòµÄÀàÐÍ£¬ÒÔ¼°ÏßÌõ¡¢×ÖÌ塢ͼÐκÍÆäËû¿ÉÊÓ»¯¶ÔÏóµÄÊôÐÔ¡¢ÄÚÖõĺͳɿéµÄ¸ñʽ»¯¶ÔÏó£¬ÒÔ¼°ÆäËûÐí¶àÓï·¨½á¹¹¡£
¸ñʽ»¯¶ÔÏó¾­³£´óÁ¿±»Ê¹ÓÃÔÚ°ÑXMLÎı¾Êý¾Ýת»¯Îª¶þ½øÖƸñʽµÄ³¡ºÏ£¬ÀýÈçÒ»¸öPDFÎı¾£¬Ò»¸öͼÏñÎļþ»òÕßÏñWORDÒ»ÑùµÄÎĵµ¸ñʽ¡£ÎªÁË°ÑXMLÊý¾Ýת»»³ÉÆäËûµÄÎı¾¸ñʽ£¬ÕâЩ¶ÔÏóºÜÉÙ±»Ã÷ȷʹÓ᣾¡¹Ü¶ÔÒ»¸öÑùʽ±íÂß¼­µÄµ×²ã²¿·Ö£¬¸ñʽ»¯¶ÔÏóºÜÉÙÖ±½Ó±»µ÷Ó㬶ø½á¹ûµÄÎı¾Êý¾Ý¾­³£·ûºÏÓÚÒѶ¨ÒåµÄ±êʶÓïÑÔ£¬ÈçHTML
l  XSL× ......

Java and XML_¶ÁÊé±Ê¼Ç_2010 05 19

2010-05-19
Æß¡¢×ª»»XML
l  ¿ÉÀ©Õ¹Ñùʽ±íÓïÑÔ£¨XSL£©£¬±»¶¨Òå³ÉÁËÒ»ÖÖ±íʾÑùʽ±íµÄÓïÑÔ¡£ÊǹÜÀíÔõÑù´Ó¸ñʽAת»»Ò»¸öÎĵµµ½¸ñʽBµÄ¹æ·¶ÓïÑÔ¡£¸ÃÓïÑÔ×é¼þÓÃÓÚ¹ÜÀíת»»½á¹¹ÖеĴ¦ÀíºÍÉí·ÝÑéÖ¤
n  XSLÊÇÒ»ÖÖÓÃÀ´×ª»»XMLÎĵµµÄÓïÑÔ¡£
n  XSLÊÇÒ»¸öÓÃÀ´Ö¸¶¨XMLÎĵµ¸ñʽµÄ´Ê»ã¿â¡£
l  XSLºÍÊ÷ÐÎÃèÊö£ºÕâ¸öÓÃXSL¶¨ÒåµÄ¹æÔò±¾ÉíÒѱ»Ê÷ÐνṹËùÔ¼Êø£¬Éæ¼°µ½ÁËXMLÎĵµ²ã´Î½á¹¹µÄ¼òµ¥¹ý³Ì¡£×î´óÓŵãÊÇËüÔÊÐíXMLÎĵµÖеÄÏà¹Ø¼¯ºÏÔªËر£³ÖÏàͬ²Ù×÷
l  ¸ñʽ»¯¶ÔÏ󣺼¸ºõËùÓеÄXSL˵Ã÷¶¼Ó붨Òå¸ñʽ»¯¶ÔÏó£¨formatting object£©Óйء£Ò»¸öÊôÐԺʹʻãµÄ´ó¼¯ºÏ×é³ÉÁ˸ñʽ»¯¶ÔÏóÄܹ»Ê¹ÓõÄÌØÕ÷¼¯ºÏ¡£ÕâÒ²°üÀ¨ÁËÄܹ»±»¶ÔÏó¿ÉÊÓ»¯ÇøÓòµÄÀàÐÍ£¬ÒÔ¼°ÏßÌõ¡¢×ÖÌ塢ͼÐκÍÆäËû¿ÉÊÓ»¯¶ÔÏóµÄÊôÐÔ¡¢ÄÚÖõĺͳɿéµÄ¸ñʽ»¯¶ÔÏó£¬ÒÔ¼°ÆäËûÐí¶àÓï·¨½á¹¹¡£
¸ñʽ»¯¶ÔÏó¾­³£´óÁ¿±»Ê¹ÓÃÔÚ°ÑXMLÎı¾Êý¾Ýת»¯Îª¶þ½øÖƸñʽµÄ³¡ºÏ£¬ÀýÈçÒ»¸öPDFÎı¾£¬Ò»¸öͼÏñÎļþ»òÕßÏñWORDÒ»ÑùµÄÎĵµ¸ñʽ¡£ÎªÁË°ÑXMLÊý¾Ýת»»³ÉÆäËûµÄÎı¾¸ñʽ£¬ÕâЩ¶ÔÏóºÜÉÙ±»Ã÷ȷʹÓ᣾¡¹Ü¶ÔÒ»¸öÑùʽ±íÂß¼­µÄµ×²ã²¿·Ö£¬¸ñʽ»¯¶ÔÏóºÜÉÙÖ±½Ó±»µ÷Ó㬶ø½á¹ûµÄÎı¾Êý¾Ý¾­³£·ûºÏÓÚÒѶ¨ÒåµÄ±êʶÓïÑÔ£¬ÈçHTML
l  XSL× ......

XMLÎĵµµÄÏÔʾ CSS

Product.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="product.css" ?>
<productata>
<product prodid="p001" category="toy">
<productname>Mini Bus</productname>
<description>This is a toy for childern aged 4 and above</description>
<price>75</price>
<quantity>54</quantity>
</product>
<product prodid="p002" category="toy">
<productname>Barbie Doll</productname>
<description>This is a toy for childern in the age group of 5-10</description>
<price>20</price>
<quantity>200</quantity>
</product>
</productata>
Product.css
@charset "utf-8";
/* CSS Document */
productname
{
font-family:Arial;
font-size:20px;
font-weight:bold;
color:red;
display:block;
padding-top:6px;
padding-bottom:6px;
}
price,description,quantity
{
font-family:Arial;
font-size:10px;
color:teal;
display:bl ......

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Óë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ÓëCSS IDÑ¡Ôñ·ûµÄʹÓÃ

ID.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="ID.css"?>
<bookdetail>
<book class="A" id="B1">
<author>²ÜÑ©ÇÛ</author>
<title>ºìÂ¥ÃÎ</title>
<price>60.00</price>
</book>
<book class="A" id="B2">
<author>ÂÞ¹áÖÐ</author>
<title>Èý¹úÑÝÒå</title>
<price>20.00</price>
</book>
<book class="M" id="B3">
<author>ÇíÑþ</author>
<title>Ò»Á±ÓÄÃÎ</title>
<price>20.00</price>
</book>
</bookdetail>
ID.css
@charset "utf-8";
/* CSS Document */
bookdetail
{
display:block
}
book#B3
{
font-weight:bold;
color:red
}
book
{
display:block
}
author
{
font-style:italic
}

......

XMLÓëCSS IDÑ¡Ôñ·ûµÄʹÓÃ

ID.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="ID.css"?>
<bookdetail>
<book class="A" id="B1">
<author>²ÜÑ©ÇÛ</author>
<title>ºìÂ¥ÃÎ</title>
<price>60.00</price>
</book>
<book class="A" id="B2">
<author>ÂÞ¹áÖÐ</author>
<title>Èý¹úÑÝÒå</title>
<price>20.00</price>
</book>
<book class="M" id="B3">
<author>ÇíÑþ</author>
<title>Ò»Á±ÓÄÃÎ</title>
<price>20.00</price>
</book>
</bookdetail>
ID.css
@charset "utf-8";
/* CSS Document */
bookdetail
{
display:block
}
book#B3
{
font-weight:bold;
color:red
}
book
{
display:block
}
author
{
font-style:italic
}

......
×ܼǼÊý:815; ×ÜÒ³Êý:136; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [7] [8] [9] [10] 11 [12] [13] [14] [15] [16]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ