单页效果实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="style3.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="wrapper">
        <div class="heading">
            <div class="heading_nav">
                <div class="heading_title">nidaye</div>
                <div class="heading_navbar">
                    <ul>
                        <li ><a href="#">1</a></li>
                        <li ><a href="#">2</a></li>
                        <li ><a href="#">3</a></li>
                        <li ><a href="#">4</a></li>
                    </ul>
                </div>
                <div class="heading_img">
                    <img src="">
                </div>
                <div class="heading_soptlight">
                    <form>
                        <input type="text">
                    </form>
                </div>
            </div>
        </div>
        <div class="body">
            <div class="body_title">
                <h3>nidaye</h3>
                <p>8lala8laa8la8la8la8la8la8la8a8la8la8la</p>
            </div>
            <hr/>
            <hr/>
        </div>

    </div>
    <div class="footing">
        @nideye
    </div>
</div>
</body>
</html>
*{margin: 0px;
    padding-left: 0px;
}
body{
    background-color: snow;
}
.wrapper{
    width: 80%;
    height: 1000px;
    background-color: antiquewhite;
    margin: 0px auto;
}
.heading{
    margin:0px;
    width: 100%;
    height: 90px;
    background-color: snow;
    margin: 0px auto;
}
.heading_title{
    float: left;
    font-family: Arial;
    font-size: 30px;
    color: crimson;
}
.heading_nav{
    padding-bottom: 30px;
    padding-top: 30px;
    width: 100%;
    height: 30px;
    position: relative;
}
ul{
    margin-left: 40px;
    float: left;
    list-style-type: none;
    padding-top: 6px;
    padding-bottom: 6px;
}
li{
    padding-left: 10px;
    display: inline;
 }
a:link,a:visited{
    font-weight: bold;
    color: darkgray;
    text-align: center;
    padding: 6px;
    text-decoration: none;
}
a:hover,a:active{
    color: black;
}
.heading_img{
    border-radius: 30px;
    display: inline;
    width: 26px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.heading_soptlight form{
    float: right;
    width: 100px;
    height: 26px;
    position: relative;
    margin-right: 50px;
}
form input{
    height: 26px;
    border-radius: 30px;
}
.footing{
    padding-top: 20px;
    text-align: center;
    color: darkgray;
    font-size: 10px;
}
.body{
    padding:30px;
    height: auto;
    width: auto;
}
.body_title h3{
    font-size: 30px;
    font-family: Arial;
    width: auto;
    color: #333333;
}
.body_title p{
    margin-top: 20px;
    margin-bottom: 20px;

}

 

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值