From 79a6f91e37cbb607566a4269be471f6b470b0fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 28 Oct 2021 22:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/mdp.scss | 60 ++++++++++++++- .../xm/core/xmQuestion/XmQuestionAdd.vue | 10 +-- .../xm/core/xmQuestion/XmQuestionEdit.vue | 10 +-- .../xm/core/xmQuestion/XmQuestionMng.vue | 75 +++++++++++-------- 4 files changed, 111 insertions(+), 44 deletions(-) diff --git a/src/styles/mdp.scss b/src/styles/mdp.scss index 00f73bb8..accda911 100644 --- a/src/styles/mdp.scss +++ b/src/styles/mdp.scss @@ -175,4 +175,62 @@ justify-content: flex-start; align-items: bottom; overflow-x: hidden; -} \ No newline at end of file +} +.center{ + text-align: center; + align-items: center; +} +.page-center{ + margin:0 auto; + max-width: 95vw; +} +//富文本必须放在全局,否则不起作用 +.rich-context{ + padding-left: 5px; + padding-right: 5px; + overflow: hidden; +} +.rich-context img{ + max-width: 100%; + object-fit: scale-down; +} + + + + +/*此处根据不同屏幕分配率显示不同的样式*/ +/*手机端*/ +@media only screen and (min-width: 0px) and (max-width: 768px) { + .page-center{ + margin:0 auto; + max-width: 95vw; + } +} +/*ipad*/ +@media only screen and (min-width: 768px) and (max-width: 992px) { + .page-center{ + margin:0 auto; + max-width: 95vw; + } +} +/*ipadpro*/ +@media only screen and (min-width: 992px) and (max-width: 1200px) { + .page-center{ + margin:0 auto; + max-width: 95vw; + } +} +/*笔记本*/ +@media only screen and (min-width: 1200px) and (max-width: 1920px) { + .page-center{ + margin:0 auto; + max-width: 90vw; + } +} +/*台式电脑*/ +@media only screen and (min-width: 1920px) { + .page-center{ + margin:0 auto; + max-width:80vw; + } +} diff --git a/src/views/xm/core/xmQuestion/XmQuestionAdd.vue b/src/views/xm/core/xmQuestion/XmQuestionAdd.vue index 5370d824..df20ab1d 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionAdd.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionAdd.vue @@ -74,24 +74,24 @@
- +
- + - + - + - + diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index 73c571d8..ab06473d 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -1,6 +1,6 @@