Skip to content

Commit

Permalink
fix: banner图高度没有用rem单位
Browse files Browse the repository at this point in the history
  • Loading branch information
sl1673495 committed Aug 23, 2019
1 parent fd98cf1 commit 9af7829
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ https://binaryify.github.io/NeteaseCloudMusicApi

![音乐播放](https://user-images.githubusercontent.com/23615778/62509202-da358580-b83c-11e9-98e1-530e5741ff56.png)

![最新MV](http://pvgju1g4v.bkt.clouddn.com/1566523445145.jpg)

![MV播放](http://pvgju1g4v.bkt.clouddn.com/1566523832703.jpg)

### 安装与使用

前端项目
Expand Down
18 changes: 12 additions & 6 deletions src/page/discovery/banner.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<el-carousel
:interval="4000"
class="banner-carousel"
type="card"
height="200px"
>
<el-carousel-item
v-for="(banner) in banners"
:key="banner.scm"
v-for="(banner) in banners"
>
<img
class="banner-img"
:src="$utils.genImgUrl(banner.imageUrl, 1000, 400)"
class="banner-img"
/>
</el-carousel-item>
</el-carousel>
Expand All @@ -33,8 +33,14 @@ export default {


<style lang="scss" scoped>
.banner-img {
width: 100%;
height: 100%;
.banner-carousel {
/deep/.el-carousel__container {
height: 200px;
}
.banner-img {
width: 100%;
height: 100%;
}
}
</style>

0 comments on commit 9af7829

Please sign in to comment.