diff --git a/src/App.vue b/src/App.vue index dc5ccb5..0806b77 100644 --- a/src/App.vue +++ b/src/App.vue @@ -31,7 +31,7 @@ export default { data() { return { iftop: false, - width: document.documentElement.clientWidth >=992 + width: document.documentElement.clientWidth >=1200 } }, mounted() { //监听scroll方法 diff --git a/src/views/edu_teach/index.vue b/src/views/edu_teach/index.vue index 04e8e8b..f95e155 100644 --- a/src/views/edu_teach/index.vue +++ b/src/views/edu_teach/index.vue @@ -9,10 +9,10 @@ - +
- +
@@ -50,7 +50,7 @@
- +
@@ -78,7 +78,7 @@
- +
不忘初心,展望未来——信息科学与技术学院开展转专业同学交流会 @@ -88,7 +88,7 @@
- +
@@ -108,7 +108,7 @@
- +
不忘初心,展望未来——信息科学与技术学院开展转专业同学交流会 @@ -118,7 +118,7 @@
- +
@@ -138,7 +138,7 @@
- +
不忘初心,展望未来——信息科学与技术学院开展转专业同学交流会 @@ -148,7 +148,7 @@
- +
@@ -168,7 +168,7 @@
- +
不忘初心,展望未来——信息科学与技术学院开展转专业同学交流会 @@ -178,7 +178,7 @@
- +
@@ -189,7 +189,7 @@
- +
@@ -341,6 +341,13 @@ export default { margin-top: 4rem; } + .tw_img{ + width: 100%; + text-align: left; + img{ + width: 90%; + } + } .tw_time { border-right: .1rem solid #D5D5D5; height: 10rem; diff --git a/src/views/index/components/news_center.vue b/src/views/index/components/news_center.vue index 0ebe04f..01227b2 100644 --- a/src/views/index/components/news_center.vue +++ b/src/views/index/components/news_center.vue @@ -24,10 +24,10 @@ - +
- +
@@ -45,19 +45,16 @@
- -
-
- +
- + - +
@@ -67,7 +64,7 @@
- +
@@ -77,7 +74,7 @@
- +
@@ -87,7 +84,7 @@
- +
@@ -186,7 +183,9 @@ export default { color: #262626; margin: 1rem auto; width: 80%; - height: 4rem; + //height: 4rem; + overflow:hidden; //超出的文本隐藏 + text-overflow:ellipsis; //溢出用省略号显示 display:-webkit-box; //作为弹性伸缩盒子模型显示。 -webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列 -webkit-line-clamp:3; //显示的行 @@ -194,4 +193,15 @@ export default { } } +@media screen and (min-width: 1100px) and (max-width: 1400px) { + .news_context { + width: 20rem !important; + height: 20rem !important; + + .news_context_img { + height: 12.5rem !important; + } + } +} + diff --git a/src/views/index/components/party_building_activities.vue b/src/views/index/components/party_building_activities.vue index 5a13029..0daaa94 100644 --- a/src/views/index/components/party_building_activities.vue +++ b/src/views/index/components/party_building_activities.vue @@ -60,10 +60,10 @@ - +
- +
@@ -159,7 +159,7 @@ export default { name: "party_building_activities", components: { SlideshowCard - } + }, } diff --git a/src/views/index/components/scientific_research_trends.vue b/src/views/index/components/scientific_research_trends.vue index 620bf96..62a150b 100644 --- a/src/views/index/components/scientific_research_trends.vue +++ b/src/views/index/components/scientific_research_trends.vue @@ -25,10 +25,10 @@ - +
- + @@ -193,10 +193,10 @@ - +
- + @@ -419,7 +419,7 @@ export default { } } -@media screen and (min-width: 1100px) and (max-width: 1400px) { +@media screen and (min-width: 1100px) and (max-width: 1400px) { .scientific_context_text { padding-left: 2rem !important; diff --git a/src/views/index/components/teaching_student.vue b/src/views/index/components/teaching_student.vue index 008dd7e..4fcbcf6 100644 --- a/src/views/index/components/teaching_student.vue +++ b/src/views/index/components/teaching_student.vue @@ -27,13 +27,13 @@ - +
- +
- +
28 @@ -43,7 +43,7 @@
- +
不忘初心,展望未来——信息科学与技术学院开展转专业同学交流会 @@ -53,7 +53,7 @@
- +
@@ -63,7 +63,7 @@
- +
28 @@ -73,7 +73,7 @@
- +
信息科学与技术学院开展英语四级备考指导会 @@ -83,7 +83,7 @@
- +
@@ -93,7 +93,7 @@
- +
28 @@ -103,7 +103,7 @@
- +
信息科学与技术学院新生入学教育—国际化讲座 @@ -113,7 +113,7 @@
- +
@@ -123,7 +123,7 @@
- +
28 @@ -133,7 +133,7 @@
- +
信息科学与技术学院2021级研究生职业生涯规划入学专题教育顺利开展 @@ -143,7 +143,7 @@
- +
@@ -153,7 +153,7 @@
- +
28 @@ -163,7 +163,7 @@
- +
秋风瑟瑟,信息送暖 ——信息学院家庭经济困难学生资助政策座谈会 @@ -173,7 +173,7 @@
- +
@@ -204,7 +204,7 @@ export default { name: "teaching_student", data(){ return{ - width:document.documentElement.clientWidth + width:document.documentElement.clientWidth>=992 } }, } @@ -240,6 +240,7 @@ export default { } .tw_context { + width: 95%; font-family: PingFangSC-Medium, PingFang SC; color: #161616; diff --git a/src/views/school_profile/index.vue b/src/views/school_profile/index.vue index e35ae5b..722a9f7 100644 --- a/src/views/school_profile/index.vue +++ b/src/views/school_profile/index.vue @@ -10,10 +10,10 @@
- +
- +
@@ -59,7 +59,7 @@
- +
@@ -114,7 +114,7 @@ - +
@@ -130,6 +130,9 @@ export default { width: document.documentElement.clientWidth } }, + // created() { + // alert(this.width>=992) + // } } diff --git a/src/views/teaching_staff/index.vue b/src/views/teaching_staff/index.vue index 8fbcd3d..f42a775 100644 --- a/src/views/teaching_staff/index.vue +++ b/src/views/teaching_staff/index.vue @@ -10,10 +10,10 @@ - +
- +
@@ -51,7 +51,7 @@
- +
@@ -304,7 +304,7 @@ - +