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 @@