提交 5ec5a257 authored 作者: matian's avatar matian

修改留学中心样式

上级 b7367f98
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
<div class="project-list"> <div class="project-list">
<div class="project-item" v-for="(item, index) in list" :key="index"> <div class="project-item" v-for="(item, index) in list" :key="index">
<!-- <AppLink :data="item"><img :src="item.imgUrl"/></AppLink> --> <!-- <AppLink :data="item"><img :src="item.imgUrl"/></AppLink> -->
<div class="project-item-pic" :style="`background:url(${item.imgUrl}) no-repeat center`"> <div
class="project-item-pic"
:style="`background:url(${item.imgUrl}) no-repeat center;background-size: 100% 100%;`"
>
<!-- <img :src="item.imgUrl" /> --> <!-- <img :src="item.imgUrl" /> -->
<ul class="tools"> <ul class="tools">
<li @click="handleSubmit(item)">我要报名</li> <li @click="handleSubmit(item)">我要报名</li>
...@@ -60,7 +63,7 @@ export default { ...@@ -60,7 +63,7 @@ export default {
.project-item { .project-item {
background-color: #fff; background-color: #fff;
.project-item-pic { .project-item-pic {
height: 390px; height: 360px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
...@@ -68,11 +71,11 @@ export default { ...@@ -68,11 +71,11 @@ export default {
width: 100%; width: 100%;
} }
&:hover { &:hover {
box-shadow: 0px 1px 24px rgba(0, 0, 0, 0.11); box-shadow: 0px 3px 24px rgba(0, 0, 0, 0.3);
} }
.tools { .tools {
position: absolute; position: absolute;
bottom: 23px; bottom: 20px;
left: 0; left: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -82,19 +85,19 @@ export default { ...@@ -82,19 +85,19 @@ export default {
flex: 1; flex: 1;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #777; color: #4d4d4d;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
&:hover { // &:hover {
font-weight: 500; // font-weight: 500;
color: #333333; // color: #333333;
} // }
} }
li:first-child { li:first-child {
color: #a81840; color: #af1c40;
} }
li + li { li + li {
border-left: 1px solid #e1e1e1; border-left: 1px solid #c9c9c9;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论