Sfoglia il codice sorgente

refactor(simple-demo): 优化热榜页面样式和布局

- 添加 viewport 元标签,优化移动端体验
- 添加样式:重置默认样式、设置字体和布局
- 改进标题样式:加大字体、加粗、增加底部间距
- 优化列表样式:设置列表缩进、列表项间距和行高
- 添加链接样式:设置初始颜色和悬停效果
- 修复文字换行显示问题
tianyun 5 mesi fa
parent
commit
61e5ae7264
2 ha cambiato i file con 28 aggiunte e 1 eliminazioni
  1. BIN
      .DS_Store
  2. 28 1
      simple-demo/hot.html

BIN
.DS_Store


+ 28 - 1
simple-demo/hot.html

@@ -2,14 +2,41 @@
 <html lang="en">
 <head>
     <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
     <title>热榜</title>
     <meta name="referrer" content="https://open.tophub.today/hot"/>
     <script src="js/vue.min.js"></script>
     <script src="js/axios.min.js"></script>
+    <style>
+        body {
+            margin: 0;
+            padding: 10px;
+            font-family: Arial, sans-serif;
+        }
+        #app {
+            max-width: 800px;
+            margin: 0 auto;
+        }
+        ol {
+            padding-left: 20px;
+        }
+        li {
+            margin: 10px 0;
+            line-height: 1.5;
+        }
+        a {
+            color: #333;
+            text-decoration: none;
+            word-break: break-word;
+        }
+        a:hover {
+            color: #007bff;
+        }
+    </style>
 </head>
 <body>
 <div id="app">
-    <p>热榜</p>
+    <p style="font-size: 18px; font-weight: bold; margin-bottom: 15px;">热榜</p>
     <ol>
         <li v-for="(v,i) in hotList">
             <a target="_blank" :href="v.url">{{v.sitename}}:{{v.title}}</a>