Skip to content

Commit

Permalink
- [新增] 开始编写Header组件
Browse files Browse the repository at this point in the history
  • Loading branch information
montage-f committed Sep 25, 2019
1 parent bcf8295 commit 3ca9575
Show file tree
Hide file tree
Showing 3 changed files with 8,409 additions and 6 deletions.
28 changes: 23 additions & 5 deletions src/views/Home/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<template>
<div class="Header">
<div class="header-left">
hello world
返回
</div>
<div class="header-input">

1
</div>
<div class="header-right">

城市
</div>
</div>
</template>
Expand All @@ -32,7 +32,25 @@
// 我们将html的字体大小设置为75px
// 那么 1rem = html font-size 75px
.Header {
color: red;
font-size:35px;
color: #fff;
height: 86px;
align-items: center;
display: flex;
background: #00bcd4;
.header-left {
width: 64px;
}
.header-input {
flex: 1;
background: #ffffff;
border-radius: 5px;
}
.header-right {
width: 124px;
}
}
</style>
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
plugins: [
autoprefixer(),
pxtorem({
rootValue: 75,
rootValue: 37.5,
propList: ['*'],
}),
],
Expand Down
Loading

0 comments on commit 3ca9575

Please sign in to comment.