A detailed look at XML behavior - the new DHTML?

黄舟
Release: 2017-03-28 17:14:58
Original
1803 people have browsed it

Behavior (behavior) is a CSS attribute selector. It points to an XML file (htc) that contains special code and can change HTML page elements.

Behavior (Behavior) is not a W3C standard, it is just a Microsoft technology.

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

Behavior - What is behavior?
Behavior is a new CSS attribute

The behavior attribute can point to a separate XML file that contains script code that can change the elements or display styles of the XML or HTML page.

Do you understand? This is a way to completely separate the script program from the HTML page. This is great, now we can write some script libraries and connect them to any element we want.

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

How do behaviors work?
Look at the HTML file below. The behavior of the

element is defined in the