XML entry tutorial (2)

xiaoxiao2021-03-06  72

16, CSS style definition node

lisongtao

The application of asp

-------------------------------------------------- -------

CSS

-------------------------------------------------- ---------

Books {display: block;}

Book {Display: Block; Background-Color: #aabbcc}

---------------------------------------------

Experience: The above definition method is the same as that of redefining the HTML tag style, such as an unacity of CSS, it is recommended to use DW to generate, then the effect. It is easy to learn.

17, style class definition XML

Class = "ListClass">

Class = "Listsmall"> Lisongtao

zhongguo

-------------------------------------------------- ------------

3.CSS

.listclass {color: red; font-size: 26pt}

.listsmall {color: blue; font-size: 15pt}

18, class ID definition XML

ID = "List"> lisongtao

ID = "List1"> Lisongtao

---------------------------------

ID.CSS

--------------------------------------------------

#List {font-size: 28pt; color: red; display: block}

# List1 {font-size: 14pt; color: blue display: block}

19. Use CSS directly in XML

Style = "Font-Weight: bold; color: red">

Hello XML!

20. Method for merged another style sheet in a style sheet

@Import URL ("Sevil.css");

21. Customize the block display of the node with CSS

Xml.xml

-------------------------------------------------- ------------------------------

GB2312 "?>>

Books {Display: block; width: 30em;}

list

ASP and its application

Tsinghua University

12.30

James

XML and its application

Tsinghua University

15.30

john

CSS and its application

Peiking University

16.30

-------------------------------------------------- -------------

CSS.CSS

-------------------------------------------------- -------------

Book

{

Display: block;

Background-color: #aabbcc;

Padding: 1.2em;

Margin-Bottom: 1EM;

}

Author

{

Display: block;

FONT-SIZE: 16pt;

Color: RED;

}

22. Methods of reference multiple CSS style sheets in the same XML file

23. Methods of using HTML tags in XML, inserted into the picture

GB2312 "?>>

list

ASP and its application

Tsinghua University

12.30

24. Use HTML tags in XML (2), use super connection

GB2312 "?>>

list

ASP and its application

Tsinghua University

12.30

[colorred] 263 China Online [/ color]

25, using HTML tags (3) in XML, use

GB2312 "?>>

list

ASP and its application

Tsinghua University

12.30

26. Use the HTML tag in XML (4), use the table label

GB2312 "?>>

List

ASP Program

Tsinghua University

27, using an HTML mark method (5) in XML, use a form

sweat. . . . This is not interesting, for reference only

GB2312 "?>>

Name

Name

Name

28. Use the HTML tag in XML (6), using JS scripts

GB2312 "?>>

Var frunning = 0

Function StartTrans ()

{

IF (frUnning == 0)

{

Frunning = 1

SampleId.filters.reveAltrans.Apply ();

SampleId.src = "suzh1.jpg";

SampleId.Filters.reveAltrans.play ()

}

Else

{

Frunning = 0

SampleId.filters.reveAltrans.Apply ();

SampleId.src = "suzh2.jpg";

SampleId.Filters.reveAltrans.play ()

}

}

Click Image for Transition Filter: Blend

29, summarize CSS / HTML:

In fact, in XML calls CSS to display unified style, it is very simple, mainly through one

Such methods are connected. It is best to learn CSS's grammatical syntax. If you don't have it, you can also use DW to generate a CSS style sheet and join..........................................................................................................................................................................................................................................

The HTML tag can be called to be implemented with . But must pay attention to the rules of XML.

转载请注明原文地址:https://www.9cbs.com/read-108647.html

New Post(0)