标签:style class blog http tar ext
<!DOCTYPE HTML>
<html>
<head>
<title>石家庄渣浆泵</title>
<style type="text/css">
*{margin: 0;padding: 0;}
body {background-color: #434343;color: #fff;font-family: ‘Courgette‘, cursive;padding: 50px;text-align: center;}
a {
color: #fff;
}
#nav:after,#nav:before {content:"";display: table;}
#nav:after {clear:both;overflow:hidden;}
#nav {
zoom: 1;width:450px;padding: 10px 20px;margin: 100px auto;background-color: #4c505b; /* Old browsers */
background-image: -moz-linear-gradient(top, #4c505b 0%, #383b44 50%, #32343c 51%, #212227 100%); /* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c505b), color-stop(50%,#383b44), color-stop(51%,#32343c), color-stop(100%,#212227)); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, #4c505b 0%,#383b44 50%,#32343c 51%,#212227 100%); /* Chrome10+,Safari5.1+ */
background-image: -o-linear-gradient(top, #4c505b 0%,#383b44 50%,#32343c 51%,#212227 100%); /* Opera 11.10+ */
background-image: -ms-linear-gradient(top, #4c505b 0%,#383b44 50%,#32343c 51%,#212227 100%); /* IE10+ */
background-image: linear-gradient(to bottom, #4c505b 0%,#383b44 50%,#32343c 51%,#212227 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=‘#4c505b‘, endColorstr=‘#212227‘,GradientType=0 ); /* IE6-8 */
border: 1px solid #1e1e1e;
border-radius: 8px;
inset 0 1px 0 rgb(115, 122, 140), inset -1px 0 0 rgb(80, 83, 96),inset 0 -1px 0 rgb(47, 50, 57), inset 1px 0 0 rgb(78, 82, 94), 1px 2px 3px rgb(28, 28, 28);
}
#nav li {
float: left;
display: inline;
}
#nav a {
display: block;
float: left;
color: #fff;
text-decoration: none;
font-weight: bold;
padding: 5px 15px;
border: 1px solid #18191d;
margin: 0 14px;
border-radius: 5px;
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14),0 1px 1px rgba(255, 255, 255, 0.15);
background-color: rgb(59,64,79); /* Old browsers */
background-image: -moz-linear-gradient(top, rgba(59,64,79,1) 0%, rgba(21,23,29,1) 100%); /* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(59,64,79,1)), color-stop(100%,rgba(21,23,29,1))); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, rgba(59,64,79,1) 0%,rgba(21,23,29,1) 100%); /* Chrome10+,Safari5.1+ */
background-image: -o-linear-gradient(top, rgba(59,64,79,1) 0%,rgba(21,23,29,1) 100%); /* Opera 11.10+ */
background-image: -ms-linear-gradient(top, rgba(59,64,79,1) 0%,rgba(21,23,29,1) 100%); /* IE10+ */
background-image: linear-gradient(to bottom, rgba(59,64,79,1) 0%,rgba(21,23,29,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=‘#3b404f‘, endColorstr=‘#15171d‘,GradientType=0 ); /* IE6-8 */
}
#nav a:hover,#nav .current a {background-color: rgb(56,61,75); /* Old browsers */
background-image: -moz-linear-gradient(top, rgba(56,61,75,1) 0%, rgba(21,23,29,1) 100%); /* FF3.6+ */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(56,61,75,1)), color-stop(100%,rgba(21,23,29,1))); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, rgba(56,61,75,1) 0%,rgba(21,23,29,1) 100%); /* Chrome10+,Safari5.1+ */
background-image: -o-linear-gradient(top, rgba(56,61,75,1) 0%,rgba(21,23,29,1) 100%); /* Opera 11.10+ */
background-image: -ms-linear-gradient(top, rgba(56,61,75,1) 0%,rgba(21,23,29,1) 100%); /* IE10+ */
background-image: linear-gradient(to bottom, rgba(56,61,75,1) 0%,rgba(21,23,29,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=‘#383d4b‘, endColorstr=‘#15171d‘,GradientType=0 ); /* IE6-8 */
box-shadow:0 1px 1px rgba(255, 255, 255, 0.15);
}
</style>
</head>
<body>
<h1>CSS3 Menu</h1>
<ul id="nav">
<li class="current"><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</body>
</html>
标签:style class blog http tar ext
原文地址:http://www.cnblogs.com/youtianxia/p/3807538.html