Академический Документы
Профессиональный Документы
Культура Документы
Page
Contextual selectors
parent descendant li b {color: blue}
{styles} li b, h2 {color: blue}
#notes b {color: blue}
* {color: blue}
p > b {color: blue}
attribute selectors a[href] {color: blue} put IE into standard mode rather than quick
mode or IE5/6 apply conditional comments
Media rule
@page {size: 8.5in 11in portrait; margin:
0.5in}
printer #samples {position: absolute; left: 1in;
top:0.5in; page-break-after: always}
#sample_image {page-break-before: always;
text-align: center}
Rolleover effect: when a user rolls the mouse pointer over an element
Tables
Name: <input type="type" name="name" id="id" size="7" /> Size to control the
width of the input
maxlength="2" Maximum
characters in the
input
value="value" To set up a default
value
accesskey="j" Shortcut to select
any control element
Not working in
Firefox
Radio <input type="radio" id="homeType" name="addressType" value="home" checked="checked" >
button
Selection <select id="creditCard" name="creditCard">
List <optgroup label="FirstGroup">
<option selected="selected" value="Amex" size=”>American Express</option>
<option value="Disc">Discover</option>
</optgroup>
<option value="MC">MasterCard</option>
<option value="Visa">Visa</option>
</select>