123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <div class="header_box">
- <div class="header_left">
- <img src="https://css.huijiaoyun.com/tianyu_edu/area/888888/images/logo/logo.png?v=0818" class="logo_img"/>
- <div class="header_list">
- <ul>
- <a href=""><li v-for="items in navlist" class="nav_name">{{items.name}}</li></a>
- </ul>
- </div>
- </div>
- <div class="header_right">
- <div class="login_btn"><button>登录</button></div>
- <div class="helper"><button>教学助手</button></div>
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- navlist: [
- { "id": 1, "name": '首页', "url": '' },
- { "id": 2, "name": '资源', "url": '' },
- { "id": 3, "name": '名师', "url": '' },
- { "id": 4, "name": '活动', "url": '' },
- ],
- }
- }
- }
- </script>
- <style>
- .header_box {
- padding: 0.5% 8% 0.5% 8%;
- width: 100%;
- height: 85px;
- background-color:#fff;
- }
- .header_left {
- width: 70%;
- float: left;
- height: 75px;
- }
- .header_right {
- width: 30%;
- float: left;
- height: 75px;
- }
- .logo_img {
- float: left;
- margin-left:5%;
- }
- .header_list {
- float: left;
- width:70%;
- padding-left:15%;
- }
- .nav_name {
- width: 15%;
- float: left;
- list-style: none;
- display: block;
- height: 38px;
- line-height: 85px;
- padding: 0 5px;
- margin: 0 11px;
- font-size: 18px;
- color: #555555;
- text-align:center;
- }
- .login_btn {
- width:30%;
- display:block;
- float:left;
- }
- .login_btn button {
- width: 85px;
- text-align: center;
- background: #26b5ff;
- color: #fff;
- height: 35px;
- line-height: 35px;
- margin: 22px 22px 0px 22px;
- border: 0;
- border-radius: 10px;
- font-size:18px;
- }
- .helper {
- width: 45%;
- display: block;
- float: left;
- padding-top:22px;
- }
- .helper button {
- padding: 0 17px;
- color: #288add;
- border: 1px solid #2196f3;
- height: 30px;
- line-height: 30px;
- background: #fff;
- font-size: 18px;
- }
- </style>
|