Commit 90d29caa authored by 李苏's avatar 李苏 💬

media

parent 20ef7234
<template> <template>
<div class="testpaper"> <div class="testpaper">
<div class="title">{{title}} <div ref="title" class="title">{{title}}
<span style="position: absolute;right: 40px;;font-size: 14px;font-weight: 300;">{{`剩余时间:${parseInt(remaining/(60*1000))}分钟${parseInt((remaining%(60*1000))/1000)}秒`}}</span> <span style="position: absolute;right: 36px;;font-size: 13px;font-weight: 300;">{{`剩余时间:${parseInt(remaining/(60*1000))}分钟${parseInt((remaining%(60*1000))/1000)}秒`}}</span>
</div> </div>
<div class="info"> <div class="info">
<div class="infoItem"> <div class="infoItem">
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
export default{ export default{
mounted() { mounted() {
this.getRemain() this.getRemain()
/* 获取*/
}, },
components:{ components:{
Subject Subject
...@@ -238,7 +239,27 @@ ...@@ -238,7 +239,27 @@
font-size: 18px; font-size: 18px;
font-weight: 800; font-weight: 800;
} }
padding-left: 111px; @media screen and (min-width: 800px) {
padding-right: 111px; & {
--mode:'normal';
padding-left: 11rem;
padding-right: 11rem;
}
}
@media screen and (max-width: 800px) {
& {
--mode:'mini';
padding-left: 2rem;
padding-right: 2rem;
.info{
display: none;
}
.title{
display: none;
}
}
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment