14. <script
type="text/javascript">
function
addWebApp()
{
try
{
window.external.msAddSiteMode();
}
catch(ex)
{
//
Site
Mode
not
supported.
}
}
</script>
<button
onclick="addWebApp()"
title="Click
to
add
this
webpage
to
your
Windows
Start
menu.">
Launch
in
Site
Mode</button>
34. CSS3 New additions – Backgrounds
34
• Backgrounds
• background-origin
• background-clip
• background-size
• multiple backgrounds
div.Sample
{
height:
200px;
width:
720px;
padding:
150px
20px
20px
20px;
background:
url(body-‐top.gif)
top
left
no-‐repeat,
url(banner_fresco.jpg)
11px
11px
no-‐repeat,
url(body-‐bottom.gif)
bottom
left
no-‐repeat,
url(body-‐middle.gif)
left
repeat-‐y;
}
35. • Color
• HSL colors
<div
style="background-‐color:
hsl
(0,100%,
50%);">
• HSLA colors
<div
style="background-‐color:
hsla
(0,100%,50%,0.2);">
• RGBA colors
<div
style="background:
rgba
(255,
0,
0,
0.2);">
• Opacity
<div
style="background:
rgb
(255,
0,
0)
;
opacity:
0.5;">
CSS3 New additions – Color
35
36. CSS3 New additions – Text Effects
36
• Text effects
• text-overflow
<div
style=“
text-‐overflow:
ellipsis;”>
• word-wrap
<div
style=“
word-‐wrap:
break-‐word;”>
37. CSS3 New additions – Selectors
37
• User-interface box-sizing
• resize
• outline
• nav-top, nav-right, nav-bottom, nav-left
• Selectors
• Attribute selectors
[att^=val] att attribute whose value begins with the prefix “val”.
[att$=val] att attribute whose value ends with the suffix “val”.
[att*=val] att attribute whose value contains the substring “val”.
p[title^=“sample"]
{background:
yellow;}