精选WPHTML+CSS代码举例
2014-01-06 10:53
323 查看
HTML+CSS代码:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Arrow by CoolWP.com</title>
<style>
html{font-size:62.5%;}
body{
width:90%;
position: relative;
margin:0;
margin-left:5%;
margin-top:100px;
padding:0;
color:#fff;
background-color: #D2D057;
font-size:16px;
font-size:1.6rem;
}
div{
display: block;
color: #005480;
}
@font-face {
font-family: 'ChristopherhandRegular';
src: url('font/comesinhandy-webfont.eot');
src: url('font/comesinhandy-webfont.eot?#iefix') format('embedded-opentype'),
url('font/comesinhandy-webfont.woff') format('woff'),
url('font/comesinhandy-webfont.ttf') format('truetype'),
url('font/comesinhandy-webfont.svg#ChristopherhandRegular') format('svg');
font-weight: normal;
font-style: normal;
}
h2{
font-size:30px;
font-size: 3rem;
line-height: 0.8;
color: #333;
font-family: 'ChristopherhandRegular', Arial, Helvetica, sans-serif;
font-weight: normal;
}
.box {
background-color: #F8F299;
border: 10px solid #fff;
padding: 15px 20px 5px 20px;
margin: 0 0 30px 0;
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
-webkit-box-shadow: 5px 10px 3px #333;
-moz-box-shadow: 5px 10px 3px #333;
box-shadow: 5px 10px 3px #333;
}
.arrow {
display: block;
width: 100px;
height: 100px;
background: url(img/arrows-sprite.png ) no-repeat 0 0 transparent;
position: absolute;
}
.arrow.arrow-1 {
background-position: 0 0;
}
.arrow.arrow-2 {
background-position: 0 -100px;
}
.arrow.arrow-3 {
background-position: 0 -203px;
width: 43px;
height: 52px;
}
.arrow.arrow-4 {
background-position: -50px -200px;
width: 50px;
height: 60px;
}
.arrow.arrow-5 {
background-position: 0 -304px;
width: 81px;
height: 72px;
}
.arrow.arrow-6 {
background-position: 0 -400px;
width: 50px;
height: 60px;
}
.arrow.arrow-7 {
background-position: -50px -400px;
width: 45px;
height: 60px;
}
.arrow.arrow-8 {
background-position: 0 -464px;
width: 30px;
height: 38px;
}
.box {
width: 20%;
float: left;
margin-left:5%;
min-height:450px;
}
.clearer {
float: none;
clear: both;
}
span{line-height:60px;}
</style>
</head>
<body>
<div>
<h2 style="">Arrows by CoolWP.com</h2>
</div>
<div class="box">
<span class="arrow arrow-1 "></span>
&l
cd70
t;h2 style="padding-top:60px">Arrow 1</h2>
<span class="arrow arrow-2"></span>
<h2 style="padding-top:90px">Arrow 2</h2>
<span class="arrow arrow-3"></span>
<h2 style="padding-top:60px">Arrow 3</h2>
</div>
<div class="box boxright">
<span class="arrow arrow-4"></span>
<h2 style="padding-top:60px">Arrow 4</h2>
<span class="arrow arrow-5"></span>
<h2 style="padding-top:90px">Arrow 5</h2>
</div>
<div class="box boxright">
<span class="arrow arrow-6"></span>
<h2 style="padding-top:60px">Arrow 6</h2>
<span class="arrow arrow-7"></span>
<h2 style="padding-top:60px">Arrow 7</h2>
<span class="arrow arrow-8"></span>
<h2 style="padding-top:40px">Arrow 8</h2>
</div>
<div class="clearer"></div>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Arrow by CoolWP.com</title>
<style>
html{font-size:62.5%;}
body{
width:90%;
position: relative;
margin:0;
margin-left:5%;
margin-top:100px;
padding:0;
color:#fff;
background-color: #D2D057;
font-size:16px;
font-size:1.6rem;
}
div{
display: block;
color: #005480;
}
@font-face {
font-family: 'ChristopherhandRegular';
src: url('font/comesinhandy-webfont.eot');
src: url('font/comesinhandy-webfont.eot?#iefix') format('embedded-opentype'),
url('font/comesinhandy-webfont.woff') format('woff'),
url('font/comesinhandy-webfont.ttf') format('truetype'),
url('font/comesinhandy-webfont.svg#ChristopherhandRegular') format('svg');
font-weight: normal;
font-style: normal;
}
h2{
font-size:30px;
font-size: 3rem;
line-height: 0.8;
color: #333;
font-family: 'ChristopherhandRegular', Arial, Helvetica, sans-serif;
font-weight: normal;
}
.box {
background-color: #F8F299;
border: 10px solid #fff;
padding: 15px 20px 5px 20px;
margin: 0 0 30px 0;
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
-webkit-box-shadow: 5px 10px 3px #333;
-moz-box-shadow: 5px 10px 3px #333;
box-shadow: 5px 10px 3px #333;
}
.arrow {
display: block;
width: 100px;
height: 100px;
background: url(img/arrows-sprite.png ) no-repeat 0 0 transparent;
position: absolute;
}
.arrow.arrow-1 {
background-position: 0 0;
}
.arrow.arrow-2 {
background-position: 0 -100px;
}
.arrow.arrow-3 {
background-position: 0 -203px;
width: 43px;
height: 52px;
}
.arrow.arrow-4 {
background-position: -50px -200px;
width: 50px;
height: 60px;
}
.arrow.arrow-5 {
background-position: 0 -304px;
width: 81px;
height: 72px;
}
.arrow.arrow-6 {
background-position: 0 -400px;
width: 50px;
height: 60px;
}
.arrow.arrow-7 {
background-position: -50px -400px;
width: 45px;
height: 60px;
}
.arrow.arrow-8 {
background-position: 0 -464px;
width: 30px;
height: 38px;
}
.box {
width: 20%;
float: left;
margin-left:5%;
min-height:450px;
}
.clearer {
float: none;
clear: both;
}
span{line-height:60px;}
</style>
</head>
<body>
<div>
<h2 style="">Arrows by CoolWP.com</h2>
</div>
<div class="box">
<span class="arrow arrow-1 "></span>
&l
cd70
t;h2 style="padding-top:60px">Arrow 1</h2>
<span class="arrow arrow-2"></span>
<h2 style="padding-top:90px">Arrow 2</h2>
<span class="arrow arrow-3"></span>
<h2 style="padding-top:60px">Arrow 3</h2>
</div>
<div class="box boxright">
<span class="arrow arrow-4"></span>
<h2 style="padding-top:60px">Arrow 4</h2>
<span class="arrow arrow-5"></span>
<h2 style="padding-top:90px">Arrow 5</h2>
</div>
<div class="box boxright">
<span class="arrow arrow-6"></span>
<h2 style="padding-top:60px">Arrow 6</h2>
<span class="arrow arrow-7"></span>
<h2 style="padding-top:60px">Arrow 7</h2>
<span class="arrow arrow-8"></span>
<h2 style="padding-top:40px">Arrow 8</h2>
</div>
<div class="clearer"></div>
</body>
</html>
相关文章推荐
- html、css和jquery相结合实现简单的进度条效果实例代码
- HTML/CSS/Javascript代码在线压缩、格式化(美化)工具
- html 里的css 和Js 的代码怎么插入?
- HTML 事件与属性,网页设计中常用的CSS属性,HTML ASCII 代码参考手册
- html中div如何水平和垂直居中的几种css方法代码
- 网页标准中HTML,CSS,JS,ASP等代码注释方法
- 受欢迎的HTML/CSS代码
- ZenCoding 一种快速编写HTMLCSS代码的方法
- 【代码笔记】HTML+CSS+JAVAScript+jQuery滑过图标下滑列表
- 快速编写HTML/CSS代码——emmet (zencoding)~
- HTML CSS,emmet插件快捷键(让代码飞起来)
- 让你的eclipse实现写JAVA代码,HTML,CSS,JAVASCRIPT代码提示
- HTML和CSS代码片段快速编写方式(Emmet Documentation)
- eclipse安装Aptana 插件,并设置使之能提示css,js,html,帮助编写代码
- Asp.net中如何过滤html,js,css代码
- Emmet:HTML/CSS代码快速编写神器(转载)
- 在线代码格式化(支持json Java js css html xml SQL等)
- Sublime Text 2/3 安装Emmet(Zencoding)以及常见使用,一种快速编写HTML/CSS代码的方法
- Emmet:HTML/CSS代码快速编写神器
- 听说这里还可以写html和css的代码?