Commit 72d219a1 authored by Chen Jiping's avatar Chen Jiping

fix:样式调整

parent c93756b0
...@@ -547,8 +547,8 @@ body { ...@@ -547,8 +547,8 @@ body {
.score .medal{ .score .medal{
position: absolute; position: absolute;
top: 6%; top: 6%;
left: 45.5%; left: 45%;
width: 9%; width: 10%;
} }
.score .val{ .score .val{
......
...@@ -131,7 +131,10 @@ ...@@ -131,7 +131,10 @@
<div id="result"> <div id="result">
<div class="score"> <div class="score">
<img src="../lib/images/excellent.png" class="medal"> <div class="medal">
<img id="medal" src="../lib/images/excellent.png" style="width: 100%;">
</div>
<div style="position: absolute;left: 40%;top: 23%;width: 20%;text-align: center;"> <div style="position: absolute;left: 40%;top: 23%;width: 20%;text-align: center;">
<span id="score" class="val">90</span> <span id="score" class="val">90</span>
</div> </div>
......
...@@ -860,7 +860,7 @@ function drawResult(data, text) { ...@@ -860,7 +860,7 @@ function drawResult(data, text) {
} }
$(".tips").empty().append(tips).addClass(fontColor); $(".tips").empty().append(tips).addClass(fontColor);
$(".medal").attr('src', imgSrc); $("#medal").attr('src', imgSrc);
$("#score").empty().append(score); $("#score").empty().append(score);
$("#recorder-text").empty().append(text); $("#recorder-text").empty().append(text);
$("#evaluation").empty().append(temp.evaluate); $("#evaluation").empty().append(temp.evaluate);
......
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