PC端固定布局

LOGO采用的是h1标签,一般为了让搜索引擎更好的抓取关键字,我们建议一个页面只有一个上,而且是最重要的关键词放在里面。在首页上,最重要的关键词就是旅行社的名称。当然,如果在其他页面,比如新闻网站的单个新闻,最重要的应该是新闻标题,网的名称就其次了。


@charset "utf-8";

body,h1,ul{
    margin:0;
    padding: 0;
}

ul{
    list-style: outside none none;
}
a{
    text-decoration: none;
}

#nav{
    width: 100%;
    height: 70px;
    background-color: #333;
}

#nav>section{
    width: 1603px;
    height: 70px;
    margin:0 auto;
}

#nav>section>h1{
    width:500px;
    height: 70px;
    background-image: url(../Img/Wegelin_&_Co_Logo.png);
    text-indent: -9999px;
    float:left;
}

#nav>section>ul{
    /* background-color: red; */
    width: 650px;
    height: 70px;
    line-height: 70px;
    color:#eee;
    /*background-color: red; */
    float:right;
}

#nav>section>ul>li{
    
    width:130px;
    text-align: center;
    float:left;
}

#nav>section>ul>li>a{
    color:white;
    display:block;
}
#nav>section>ul>li>a:hover/*#nav>section>ul>li.active a*/{
    background-color: #000;
}


<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>PC端固定</title>
    <link rel="stylesheet" href="CSS/style.css">
    <!-- <link rel="stylesheet" href="Img/"> -->
</head>
<body>
 <nav id="nav">
    <section class="nav-center">
    
        <h1 class="nav-logo">旅行社</h1>
          <ul class="link">
            <li class="active"> <a href="###">首页</a></li>
            <li><a href="###">旅游资讯</a></li>
            <li><a href="###">极品欣赏</a></li>
            <li><a href="###">机票订购</a></li>
            <li><a href="###">公司简介</a></li>
           </ul>
    

    </section>
 </nav>
     <header>header</header>

     <section>section</section>

     <footer>footer</footer>
</body>
</html>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值