diff --git a/src/views/index.vue b/src/views/index.vue
index b297e34..4b0809d 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -14,7 +14,7 @@
-

+
@@ -162,7 +162,7 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
.title {
width: 884px;
height: 45px;
- background-image: url("@/assets/images/top2.png");
+ background: url("@/assets/images/top2.png");
margin: 0 auto;
text-align: center;
img {
@@ -173,37 +173,37 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
}
.mainContent {
display: flex;
+ height: 100%;
.leftContent {
.title1 {
- width: 660px;
+ width: 34.7vw;
height: 43px;
- background-image: url("@/assets/images/1-1.png");
+ background: url("@/assets/images/1-1.png") no-repeat;
+ background-size: 100% 100%;
margin-bottom: 10px;
}
.mainBox {
- width: 660px;
- height: 736px;
- background-image: url("@/assets/images/1绿框.png");
- background-size: 660px 736px;
+ width: 34.7vw;
+ min-height: 80vh;
+ background: url("@/assets/images/1绿框.png") no-repeat;
+ background-size: 100% 100%;
.busyApp {
display: flex;
align-items: center;
padding-left: 10px;
padding-top: 5px;
- // width: 500px;
.list {
- // display: flex;
li {
list-style: none;
- width: 113px;
- height: 34px;
+ min-width: 5.9vw;
+ height: 3.597883597883598vh;
display: inline-block;
font-size: 13px;
- background-image: url("@/assets/images/绿.png");
+ background: url("@/assets/images/绿.png") no-repeat;
text-align: center;
- line-height: 34px;
+ line-height: 3.597883597883598vh;
margin-left: 15px;
- // margin-bottom: 10px;
+ background-size: 100% 100%;
}
li:nth-of-type(5) {
margin-top: 10px;
@@ -212,15 +212,16 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
.listBlue {
li {
list-style: none;
- width: 113px;
- height: 34px;
+ width: 5.9vw;
+ height: 3.597883597883598vh;
display: inline-block;
font-size: 13px;
- background-image: url("@/assets/images/蓝.png");
+ background: url("@/assets/images/蓝.png") no-repeat;
text-align: center;
- line-height: 34px;
+ line-height: 3.597883597883598vh;
margin-left: 15px;
// margin-bottom: 10px;
+ background-size: 100% 100%;
}
li:nth-of-type(5) {
margin-top: 10px;
@@ -231,14 +232,16 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
}
}
.title2 {
- width: 660px;
+ width: 100%;
height: 43px;
- background-image: url("@/assets/images/1-2.png");
+ background: url("@/assets/images/1-2.png") no-repeat;
margin-top: 5px;
+ background-size: 100% 100%;
}
.bottomView {
display: flex;
align-items: center;
+ padding: 8px 8px;
.busyApp {
display: flex;
align-items: center;
@@ -246,17 +249,17 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
padding-top: 5px;
// width: 500px;
.listBlue {
- // width: ;
- width: 369px;
+ width: 17vw;
li {
list-style: none;
- width: 113px;
- height: 34px;
+ width: 5vw;
+ height: 3.597883597883598vh;
display: inline-block;
font-size: 13px;
- background-image: url("@/assets/images/蓝.png");
+ background: url("@/assets/images/蓝.png") no-repeat;
+ background-size: 100% 100%;
text-align: center;
- line-height: 34px;
+ line-height: 3.597883597883598vh;
margin-left: 10px;
// margin-bottom: 10px;
}
@@ -266,26 +269,27 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
}
}
.arrow {
- margin-left: 249px;
+ margin-left: 13vw;
+ width: 8vw;
}
.right {
- margin-left: 7px;
- width: 142px;
- height: 542px;
- background-image: url("@/assets/images/1-2绿框.png");
+ width: 10vw;
+ height: 60vh;
+ background: url("@/assets/images/1-2绿框.png") no-repeat;
background-size: 142px 542px;
- // padding: 10px;
- // padding-top: 10px;
- padding-left: 9px;
+ background-size: 100% 100%;
+ // padding-left: 6px;
+ padding: 0px 9px;
.item {
- width: 124px;
- height: 85px;
- background-image: url("@/assets/images/小文字框.png");
+ width: 100%;
+ height: 9.5vh;
+ background: url("@/assets/images/小文字框.png") no-repeat;
margin-top: 4px;
- background-size: 124px 85px;
font-size: 13px;
padding-top: 2px;
text-align: center;
+ background-size: 100% 100%;
+
span {
// margin-left: 33px;
}
@@ -295,48 +299,52 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
}
}
.threeArrow {
- margin-top: 330px;
+ margin-top: 17.3vw;
margin-left: 5px;
}
.marketJob {
margin-left: 5px;
.title {
- background-image: url("@/assets/images/2-1.webp");
- width: 204px;
+ background: url("@/assets/images/2-1.webp") no-repeat;
+ width: 10vw;
height: 43px;
margin-bottom: 10px;
+ background-size: 100% 100%;
}
.content {
- width: 206px;
- height: 736px;
- background-image: url("@/assets/images/2篮框.webp");
- background-size: 205px 735px;
- padding: 0;
- padding-left: 13px;
- padding-top: 40px;
+ width: 10vw;
+ min-height: 80vh;
+ background: url("@/assets/images/2篮框.webp") no-repeat;
+ background-size: 100% 100%;
+ padding: 40px 12px 0px;
img {
- margin-bottom: 58px;
+ width: 100%;
+ margin-bottom: 6.8vh;
+ }
+ // 选中最后一个img
+ img:last-child {
+ margin-bottom: 0;
}
}
}
.portrait {
margin-left: 40px;
.title {
- background-image: url("@/assets/images/3-1.webp");
- width: 204px;
+ background: url("@/assets/images/3-1.webp") no-repeat;
+ background-size: 100% 100%;
+ width: 10vw;
height: 43px;
margin-bottom: 10px;
}
.content {
- width: 206px;
- height: 736px;
- background-image: url("@/assets/images/2篮框.png");
- background-size: 205px 735px;
- padding: 0;
- padding-left: 13px;
- padding-top: 10px;
+ width: 10vw;
+ min-height: 80vh;
+ background: url("@/assets/images/2篮框.png") no-repeat;
+ background-size: 100% 100%;
+ padding: 14px 11px;
img {
// margin-bottom: 58px;
+ width: 100%;
}
img:nth-of-type(2),
img:nth-of-type(4),
@@ -345,31 +353,26 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
margin-left: 10px;
}
.item:nth-of-type(1) {
- margin-left: 10px;
- width: 159px;
height: 185px;
- background-image: url("@/assets/images/3-02.webp");
- background-size: 159px 185px;
+ background: url("@/assets/images/3-02.webp") no-repeat;
+ background-size: 100% 100%;
padding-top: 140px;
text-align: center;
font-size: 14px;
}
.item:nth-of-type(2) {
- margin-left: 10px;
- width: 159px;
height: 185px;
- background-image: url("@/assets/images/3-03.webp");
- background-size: 159px 185px;
+ background: url("@/assets/images/3-03.webp") no-repeat;
+ background-size: 100% 100%;
+
padding-top: 140px;
text-align: center;
font-size: 14px;
}
.item:nth-of-type(3) {
- margin-left: 10px;
- width: 159px;
height: 185px;
- background-image: url("@/assets/images/3-04.webp");
- background-size: 159px 185px;
+ background: url("@/assets/images/3-04.webp") no-repeat;
+ background-size: 100% 100%;
padding-top: 140px;
text-align: center;
font-size: 14px;
@@ -377,37 +380,35 @@ const modelTags = ref(["人口属性", "用户价值", "用户兴趣爱好", "
}
}
.skill {
+ width: 16.7lvw;
margin-left: 10px;
.title {
- background-image: url("@/assets/images/4-1.png");
- width: 319px;
+ background: url("@/assets/images/4-1.png") no-repeat;
+ width: 100%;
height: 43px;
margin-bottom: 10px;
+ background-size: 100% 100%;
}
.content {
- width: 319px;
- height: 736px;
- background-image: url("@/assets/images/4紫框.png");
- background-size: 318px 735px;
- padding: 0;
- padding-left: 17px;
- padding-top: 10px;
+ width: 100%;
+ min-height: 80vh;
+ background: url("@/assets/images/4紫框.png") no-repeat;
+ background-size: 100% 100%;
+ padding: 14px 18px;
.item {
font-size: 14px;
- width: 283px;
height: 145px;
- background-image: url("@/assets/images/4-01.webp");
- background-size: 283px 145px;
+ background: url("@/assets/images/4-01.webp") no-repeat;
+ background-size: 100% 100%;
padding-top: 16px;
.skillTitle {
margin-left: 15px;
}
}
.item:nth-last-of-type(1) {
- width: 283px;
height: 130px;
- background-image: url("@/assets/images/4-05.png");
- background-size: 283px 130px;
+ background: url("@/assets/images/4-05.png") no-repeat;
+ background-size: 100% 100%;
}
}
}
diff --git a/src/views/learningCenter/learningResources.vue b/src/views/learningCenter/learningResources.vue
index 9970e33..6fbf227 100644
--- a/src/views/learningCenter/learningResources.vue
+++ b/src/views/learningCenter/learningResources.vue
@@ -158,7 +158,7 @@ onMounted(() => {
background-color: whitesmoke;
// padding: 10px 27px 10px 27px;
img {
- width: 159px;
+ width: 100%;
height: 190px;
}
}