html页面设置css,html页面制作css基本设置(示例代码)

html{

height: 100%;

}

*{

margin: 0;

padding: 0;

}

/* tell the browser to render HTML 5 elements as block */

article, aside, figure, footer, header, hgroup, nav, section {

display:block;

}

body {

font: normal .85em arial, sans-serif;

background: #222 url(../images/pattern.png);

color: #BBB;

padding-bottom: 40px;

}

p {

padding: 0 0 20px 0;

line-height: 1.5em;

}

img {

border: 0;

}

h1, h2, h3, h4, h5, h6 {

font: normal 200% ‘News Cycle‘, arial, sans-serif;

color: #FFF;

margin: 0 0 15px 0;

padding: 15px 0 5px 0;

}

h2 {

font: normal 170% ‘News Cycle‘, arial, sans-serif;

color: #BBB;

margin: 0;

padding: 0 0 8px 0;

}

h3 {

font: normal 125% ‘trebuchet ms‘, arial, sans-serif;

}

h4, h5, h6 {

margin: 0;

padding: 0 0 5px 0;

font: normal 110% arial, sans-serif;

color: #BBB;

line-height: 1.5em;

}

h5, h6 {

font: italic 95% arial, sans-serif;

color: #888;

padding-bottom: 15px;

}

h6 {

color: #362C20;

}

a, a:hover {

outline: none;

text-decoration: none;

color: #38B9E8;

}

a:hover {

text-decoration: underline;

color: #38B9E8;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值