<template>
  <div class='container'>
    <!-- 导航栏 -->
    <nav class='navbar'>
      <div class='navbar-left'>
        <img src='logo.png' alt='Logo'>
      </div>
      <div class='navbar-right'>
        <ul>
          <li><a href='#'>简介</a></li>
          <li><a href='#'>新闻中心</a></li>
          <li><a href='#'>制度公告</a></li>
        </ul>
      </div>
    </nav>
    <!-- 轮播图 -->
    <div class='carousel'>
      <img src='image1.jpg' alt='Image 1'>
      <img src='image2.jpg' alt='Image 2'>
    </div>
    <!-- 公司名称 -->
    <div class='company-name'>
      有限公司
    </div>
  </div>
</template>
<style>
.container {
  max-width: 1200px;
  margin: 0 auto;
  /* 其他样式... */
}

.navbar {
  width: 100%;
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 其他样式... */
}

.navbar-left {
  width: 40%;
  /* 其他样式... */
}

.navbar-left img {
  max-width: 100%;
  height: auto;
}

.navbar-right {
  width: 60%;
  /* 其他样式... */
}

.navbar-right ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-right li {
  margin-left: 20px;
}

.navbar-right a {
  color: #fff;
  text-decoration: none;
}

.carousel {
  /* 其他样式... */
}

.carousel img {
  max-width: 100%;
  height: auto;
}

.company-name {
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
  /* 其他样式... */
}
</style>
<p>注意:这只是一个示例,您可以根据自己的需要进行更改和美化。也可以添加更多的内容,如页脚、博客等。</p>
Vue.js 和 CSS 实现网站导航栏、轮播图和公司名称

原文地址: https://www.cveoy.top/t/topic/lNje 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录