Skip to content

Commit

Permalink
样式微调
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangwenhu committed Jan 18, 2025
1 parent f633cf5 commit 4051a8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion docs/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,18 @@ table {

tr:hover {
background-color: #f1f1f1; /* 当鼠标悬停在行上时改变背景色 */
}
}

.img-loading{
height: 16px;
}

#s_success{
color: green;
}


#s_cost{
color: blue;
}

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<div style="margin: 8px;">
概览:
总数:<span id="s_total"></span>,成功加载<span id="s_success">0</span>, 失败<span id="s_failed">0</span>,总开销:<span id="s_cost">0ms</span>
总数:<span id="s_total"></span>,成功加载 <span id="s_success">0</span>, 失败<span id="s_failed">0</span>,总开销:<span id="s_cost">0ms</span>
</div>
<div>
<button id="btn-load">加载</button>
Expand Down
2 changes: 1 addition & 1 deletion docs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const statusMap = {
function getStatusHtml(r) {

if (r.status == 2) {
return `<img src="./images/loading.gif"></img>`
return `<img src="./images/loading.gif" class='img-loading'></img>`
}

return statusMap[r.status] || ''
Expand Down

0 comments on commit 4051a8b

Please sign in to comment.