提交 0a945684 编写于 作者: guangjun.yang's avatar guangjun.yang

解决样式问题

上级 0b304dad
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<commonSpliteLine></commonSpliteLine> <commonSpliteLine></commonSpliteLine>
</article> </article>
<article class="title-wrapper"> <article class="title-wrapper">
<span class="type" :class="{'multi': currentQuestion.typeId == 2}"> <span class="type" :class="{'multi': currentQuestion.typeId == 2, 'top-0': isAndroid}">
<span>{{currentQuestion.typeId == 1 ? "单选题" : currentQuestion.typeId == 2 ? "多选题" : "判断题"}}</span> <span>{{currentQuestion.typeId == 1 ? "单选题" : currentQuestion.typeId == 2 ? "多选题" : "判断题"}}</span>
</span> </span>
<span class="content" v-html="currentQuestion.question"></span> <span class="content" v-html="currentQuestion.question"></span>
...@@ -103,7 +103,9 @@ export default { ...@@ -103,7 +103,9 @@ export default {
// } // }
// }, // },
data() { data() {
return {}; return {
isAndroid: window.__isAndroid
};
}, },
methods: { methods: {
// 将序号转成字母 // 将序号转成字母
...@@ -204,7 +206,7 @@ export default { ...@@ -204,7 +206,7 @@ export default {
padding: 20px 15px 15px; padding: 20px 15px 15px;
.type { .type {
position: relative; position: relative;
top: 3px; top: 2.8px;
left: 0; left: 0;
display: inline-block; display: inline-block;
width: 47px; width: 47px;
...@@ -223,6 +225,9 @@ export default { ...@@ -223,6 +225,9 @@ export default {
&.multi { &.multi {
background: #e6a23c; background: #e6a23c;
} }
&.top-0 {
top: 0;
}
} }
.content { .content {
font-size: 16px; font-size: 16px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册