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

解决样式问题

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