HTML and CSS Reference
In-Depth Information
<div style="-webkit-background-size: 200% 200%;
-moz-background-size: 200% 200%;
-o-background-size: 200% 200%;
background-size: 200% 200%;">
Bigger by percentage
</div>
O
NLINE
http://htmlref.com/ch6/backgroundsize.html
Compatibility
CSS3
Chrome 3+, Firefox 3.6+, Opera 9.5+, Safari 3+
Note
• Mozilla-based browsers such as Firefox support this property as
-moz-background-
size
, WebKit-based browsers like Chrome or Safari support it as
-webkit-
background-size
, and Opera browsers support it as
-o-background-size
.
behavior
This Microsoft-proposed CSS property is used to define the URL for a script providing
DHTML behavior. It is similar in purpose and function to the CSS3
binding
property.
Syntax
behavior: url(default behavior name or URL of behavior)
Microsoft has implemented a number of default behaviors. These are accessible by
specifying the
url
as
#default#behaviorname
, such as
behavior:url(#default#
clientCaps);
. Once these behaviors are associated with an element, additional properties
will be available to that element based on the default behavior used. Table 6-7 shows a
summary of the common default behaviors supported by Internet Explorer browsers.