Jemin的div+css测试文件

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<style>
/*
Credit: http://www.865171.cn
*/

html {
background: #fff;
}

body {
margin: 0;
padding:0;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
line-height: 1.5em;
width: 100%;
display: table;
background: #fff;
}

#templatemo_container {
background: url(images/templaetmo_container_bg.jpg) no-repeat top;
width: 960px;
margin: auto;
height:300px;
}

#templatemo_menu {
width: 960px;
height: 48px;
background: url(images/templatemo_menu_bg.jpg);
padding: 0 0 0 0;
}

#templatemo_menu ul {
float: right;
margin: 0px;
padding: 0 0 0 0;
width: 960px;
list-style: none;
}

#templatemo_menu ul li {
display: inline;
}

#templatemo_menu ul li a {
float: left;
padding: 16px 40px;
text-align: center;
font-size: 12px;
text-align: center;
text-decoration: none;
background: url(images/templatemo_menu_divider.png) center right no-repeat;
font-size: 15px;
outline: none;
color: #000;
}

#templatemo_menu li a:hover, #templatemo_menu li .current {
color: #fbb100;
background: url(images/templatemo_menu_current.png) top center no-repeat;
}

</style>

<body>
<!--主要的框架,所运用到的css样式为:#templatemo_container,特别注意:须要用到background的 no-repeat top样式,及html的头文件-->
<div id="templatemo_container">
<!--菜单项,所利用到的css样式名为:#templatemo_menu,#templatemo_menu ul,#templatemo_menu ul li,#templatemo_menu ul li a ,#templatemo_menu li a:hover, #templatemo_menu li .current -->
<div id="templatemo_menu">
<ul>
<li><a href="#">asdfasdf</a></li>
<li><a href="#">asdfasdf</a></li>
<li><a href="#">asdfasdf</a></li>
<li><a href="#">asdfasdf</a></li>
</ul>
</div>
    </div>
</body>
</html>

转载于:https://www.cnblogs.com/JamyWong/archive/2010/06/29/1767376.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值