《
CSS3网页制作教程 Action hovert》文章地址:http://www.tfxk.com/wangyesheji/jianzhanjingyan/0302332462013.htm
h1,h2{ font-weight:normal; color: #333; font-family:Georgia, "Times New Roman", serif; }
h3,h4,h5,h6 { font-weight: normal; color: #333; font-family:Georgia, "Times New Roman", serif; }
--> [
网站建设之]CSS3网页制造教程:Action:hovert
/* On Click */
Tag:教程
网页制作
.h-box-shadow:hover {
 ,CSS3网页制作实例 CSS3网页页面效果; -moz-box-shadow: 2px 2px 2px #666;
-webkit-box-shadow: 2px 2px 2px #666;
box-shadow: 2px 2px 2px #666;
}
.h-multitransform:hover {
-moz-transform:rotate(70deg) scale(1.5);
-webkit-transform:rotate(70deg) scale(1.5);
-o-transform:rotate(70deg) scale(1.5);
transform:rotate(70deg) scale(1.5);
}
li ul,
li ol { margin:0 1.5em; }
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
p.first:first-letter{ float:left;font-family: Palatino,'Palatino Linotype',Georgia, sans-serif;font-size:3em;font-weight:700;line-height:1em;margin-bottom:-0.2em;padding:0.2em 0.1em 0 0; }
p img { float: left; margin: 0.3em 0.833em 0.833em 0; padding: 0; }
p img.right { float: right; margin: 0.3em 0 0.833em 0.833em; }
<style>
body {background-color:#333;}
.main{ background-color:#fff;}
.g160,.g320,.g480,.g640,.g800,.g960,.g80,.g240,.g400,.g560,.g720,.g880{ background:transparent; }
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a,CSS3网页制作实例 content属性的综合用法, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead,CSS3简单实例分析学习, tr, th, td {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
/* Remove possible quote marks (") from <q>, <blockquote>. */
blockquote:before, blockquote:after, q:before, q:after { content: ",css3教程:弹性盒模型;"; }
blockquote, q { quotes: "" ""; }
abbr, acronym { border-bottom:1px dotted #000; }
address { margin-top:1.5em; font-style: italic; }
del {color:#000;}
/* Tables still need 'cellspacing="0"' in the markup. */
table { border-collapse: separate; border-spacing: 0; }
caption, th, td { text-align: left; font-weight: normal; }
table, td, th { vertical-align: middle; }
.h-scale:hover {
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
transform: scale(1.5);
}
.h-translate:hover {
-moz-transform:translate(-10px,-10px);
-webkit-transform:translate(-10px,10px);
-o-transform:translate(-10px,10px);
transform:translate(-10px,CSS3教程 使css3的属性在ie中正常显示,10px);
}
.t-hide:target {
-webkit-transition-duration: 3s;
-moz-transition-duration:3s;
-o-transition-duration:3s;
opacity: 0;
}
.main { margin:0 auto; width:970px; padding-top:10px; }
.g160,.g320,.g480,.g640,.g800,.g960,.g80,.g240,.g400,.g560,.g720,.g880,.g960 {float:left; display: inline; margin-left:10px; }
/* 6 columns */
.g160 {width:150px; }
.g320 {width:310px;}
.g480 {width:470px;}
.g640 {width:630px;}
.g800 {width:790px;}
.g960 {width:950px;}
.clearfix:after, .main:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.a-scale:active {
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
transform: scale(1.5);
}
.a-translate:active {
-moz-transform:translate(-10px,-10px);
-webkit-transform:translate(-10px,10px);
-o-transform:translate(-10px,10px);
transform:translate(-10px,10px),CSS3教程 Transform-变形处理;
}
.h-rotate:hover {
-moz-transform:rotate(50deg);
-webkit-transform:rotate(50deg);
-o-transform:rotate(50deg);
transform:rotate(50deg);
}
h1 { font-size: 2.2em; margin-bottom: 0.682em; }
h2 { font-size: 1.9em; margin-bottom: 0.79em; }
h3 { font-size: 1.7em; margin-bottom: 0.882em; }
h4 { font-size: 1.4em; margin-bottom: 1.071em; }
h5,h6 { font-size: 1.3em; margin-bottom: 1.154em; }
.t-rotate:target {
-moz-transform:rotate(50deg);
-webkit-transform:rotate(50deg);
-o-transform:rotate(50deg);
transform:rotate(50deg);
}
.t-box-shadow:target {
-moz-box-shadow: 2px 2px 2px #666;
-webkit-box-shadow: 2px 2px 2px #666;
box-shadow: 2px 2px 2px #666;
}
p.grid{ padding-left:10px;}
.clear {clear:both;}
.clearfix, .main{ display:block;}
.indent { text-indent:1.5em;}
.open { font-variant: small-caps; }
p.break { text-align:center;text-indent:0;line-height:0; }
p.zero{padding:0; margin:0}
p.one { padding:0 1em 1em 1em;color:#111;}
p img.right10 { float: right; margin:0.833em; }
</body>
</html>
<div class="main" >
<div class="g960">
<h1>Action :hover 摘自:<a href="
<h5 class="note">Look Ma no JavaScript</h5>
<br />
</div>
<div class="clear"> </div>
<div id="a" class="g160 h-scale" style="border:2px solid red; height:150px">鼠标过来放大</div>
<div class="clear"> </div>
<div id="b" class="g160 h-translate" style="border:2px solid red; height:150px">鼠标过来移位<,CSS3教程 pointer-events属性值详解;/div>
<div class="clear"> </div>
<div id="c" class="g160 h-rotate" style="border:2px solid red; height:150px">鼠标过来旋转45度</div>
<div class="clear"> </div>
<div id="d" class="g160 h-box-shadow" style="border:2px solid red; height:150px">鼠标过来投影后果</div>
<div class="clear"> </div>
<div id="e" class="g160 h-multitransform" style="border:2px solid red; height:150px">鼠标过来旋转</div>
<div class="clear"> </div>
<div id="f" class="g160 h-hide" style="border:2px solid red; height:150px">鼠标过来缓缓变淡</div>
<div class="clear"> </div>
</div>
/* On mouseover */
/* Color palete */
.water { color:#5582d1; }
.earth { color:#4e3e2c; }
.air { color:#f1fff7; }
.fire { color:#ff8a19; }
.wine { color:#4a040a; }
.beer { color:#F0C030; }
.caffe { color:#473523; }
.caffe-cream { color:#b68d3d; }
.espresso { color:#2c1901; }
.caramel{ color:#ab671f; }
.chocolate { color:#290200; }
.black-pepper { color:#444334; }
.pepper-lite { color:#8d8a72; }
.lipstick { color:#c20c0c; }
/*other small things */
a { color:#035292; text-decoration:none; }
a:hover { text-decoration: underline; }
.t-scale:target {
-webkit-transform: scale(1.5);
 ,CSS3教程 overflow属性超过一行显示省略号; -moz-transform: scale(1.5);
-o-transform: scale(1.5);
transform: scale(1.5);
}
.t-translate:target {
-moz-transform:translate(-10px,-10px),CSS3教程 box-sizing属性;
-webkit-transform:translate(-10px,10px);
-o-transform:translate(-10px,10px);
transform:translate(-10px,10px);
}
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Action :hovert poluoluo.com</title>
body { font:75%/1.5em "lucida grande","lucida sans unicode", sans-serif;}
p { padding:0 0 1em 0;color:#111;}
.inside{margin-left:0;}
/* margin */
.ml80{margin-left:90px;}
.ml160{margin-left:170px;}
.ml240{margin-left:250px;}
.ml320{margin-left:330px;}
.ml400{margin-left:410px;}
.ml480{margin-left:490px;}
.ml560{margin-left:560px;}
.ml640{margin-left:650px;}
.ml720{margin-left:730px;}
.ml800{margin-left:810px;}
.ml880{margin-left:890px;}
.ml960{margin-left:970px;}
dl { margin: 0 0 1.5em 0; }
dl dt { font-weight: bold; }
dl dd { margin-left: 1.5em; }
/* 12 columns */
.g80 {width:70px;}
.g240 {width:230px;}
.g400 {width:390px;}
.g560 {width:550px;}
.g720 {width:710px;}
.g880 {width:870px;}
/* CSS Action Framework */
.a-hide:active {
-webkit-transition-duration: 3s;
-moz-transition-duration:3s;
-o-transition-duration:3s;
opacity: 0;
}
</style>
</head>
<body>
.h-hide:hover {
-webkit-transition-duration: 3s;
-moz-transition-duration:3s;
-o-transition-duration:3s;
 ,CSS3改变文本选中的默认颜色; opacity: 0;
}
/* CSS Grid */
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
.a-multitransform:active {
-moz-transform:rotate(70deg) scale(1.5);
-webkit-transform:rotate(70deg) scale(1.5);
-o-transform:rotate(70deg) scale(1.5);
transform:rotate(70deg) scale(1.5);
}
strong { ont-weight: bold; }
em, dfn { font-style: italic; }
dfn { font-weight: bold; }
pre, code { margin: 1.5em 0; white-space: pre; }
pre, code, tt { font: 1em monospace; line-height: 1.5; }
tt { display: block; margin: 1.5em 0; }
hr { margin-bottom:1.5em; }
.oldbook { font-family:"Book Antiqua","Warnock Pro","Goudy Old Style","Palatino",Georgia,serif; }
.note { font-family:Georgia, "Times New Roman", Times, serif; font-style:italic; font-size:0.9em; margin:0.1em; color:#333; }
.mono { font-family:"Courier New", Courier, monospace; }
.a-rotate:active {
-moz-transform:rotate(50deg);
-webkit-transform:rotate(50deg);
-o-transform:rotate(50deg);
transform:rotate(50deg);
}
.a-box-shadow:active {
-moz-box-shadow: 2px 2px 2px #666;
-webkit-box-shadow: 2px 2px 2px #666;
box-shadow: 2px 2px 2px #666;
}
table { margin-bottom:1.5em; border-collapse: collapse; }
th { font-weight:bold; }
tr,th,td { margin:0; padding:0 1.5em 0 1em; height:18px; }
tfoot { font-style: italic; }
caption { text-align:center; font-family:Georgia, serif; }
.t-multitransform:target{
-moz-transform:rotate(70deg) scale(1.5);
-webkit-transform:rotate(70deg) scale(1.5);
-o-transform:rotate(70deg) scale(1.5);
transform:rotate(70deg) scale(1.5);
}
blockquote { padding:1em 1em 1em 1.5em; font-family:baskerville,"palatino linotype",serif; }
blockquote > *:first-child:before { content:"\201C";font-size:2.5em;margin-left:-.62em;font-family:georgia,serif;padding-right:.2em;color:#aaa;line-height:0; }/* From Tripoli */
/* Target */
/* Remove annoying border on linked images. */
a img { border: none; }
/*
Golden Grid - CSS Library
Author:Vladimir Carrer
*/
.tc { text-align:center; }
.tr { text-align:right; }
.tl { text-align:left; }
.b { font-weight:bold; }
.i { font-style:italic; }
(责任编辑:网站建设)
CSS3网页制作教程 Action hovert相关文章