css教程 2011-08-16
textarea {
overflow: auto;
}.transparent {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
...
<div class="box transparent">larger content</div><!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie7"> <![endif]--> <!--[if IE 8 ]> <body class="ie8"> <![endif]--> <!--[if IE 9 ]> <body class="ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]> for higher than IE9 or non-IE <![endif]-->
更多相关文档请看 YUI developer documentation.
/*
fonts.css from YUI Library: URL - developer.yahoo.com/yui/ */
body { font:13px sans-serif; *font-size:small; *font:x-small; line-height:1.22; }
table { font-size:inherit; font:100%; }
select, input, textarea { font:99% sans-serif; }html { overflow-y: scroll; }/** label CSS pointer reset **/
label, input[type=button], input[type=submit], button { cursor: pointer; }/* @group align radio, labels, forms */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; *vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }div.imgload {
background:url(images/sheet1.gif) no-repeat;
background:url(images/sprites.png) no-repeat;
background:url(images/mybanner.jpg) no-repeat;
margin-left: -99999px;
}img.flip {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}.round{
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px; /* future proofing */
-khtml-border-radius: 10px; /* for old Konqueror browsers */
}.box {
min-height:500px;
height:auto !important;
height:500px;
}.vcontainer {
min-height: 10em;
display: table-cell;
vertical-align: middle;
}.pullquote {
width: 220px;
float: right;
margin: 5px;
margin-left: 25px;
font-family: Georgia, "Times New Roman", Times, serif;
font: italic bold #333;
}.amp {
font-family: Baskerville, 'Goudy Old Style', Georgia Palatino, 'Book Antiqua', serif;
font-style: italic;
font-weight: normal;
}表格的现在还是较为常用的一种标签,但不是用来布局,常见处理、显示表格式数据。在HTML网页中,要想创建表格,就需要使用表格相关的标签。<table> <tr> <td>单元格内的文字</td> ...
一个客户要求给网站添加一个背景音乐,我用的是html5添加网页背景音乐的代码,在此记录一下以后有用。html5方法二:<videocontrols=""autoplay=""name="media&q