cxs 7 роки тому
батько
коміт
f6a3f9b385
2 змінених файлів з 24 додано та 177 видалено
  1. 11 22
      html/Comment.html
  2. 13 155
      js/Comment.js

+ 11 - 22
html/Comment.html

@@ -1,17 +1,16 @@
 <!doctype html>
-<html lang="en">
+<html lang="en" style="width: 100%;height: 100%;">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport"
           content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>微博评论爬虫</title>
-    <link rel="stylesheet" href="bootstrap.min.css">
-    <script src="jquery-1.9.1.js"></script>
-    <script src="index.js"></script>
+    <link rel="stylesheet" href="../css/bootstrap.min.css">
+    <script src="../js/jquery-1.9.1.js"></script>
+    <script src="../js/Comment.js"></script>
 </head>
-<body>
-
+<body style="width: 100%;height: 100%;">
 <div class="container" style="max-width: 100%;">
     <!--style="margin-left: 10px;"-->
     <div class="form-inline" style="padding: 20px 0;">
@@ -33,22 +32,12 @@
         <button type="submit" class="btn btn-default" style="margin-left: 10px;" onclick="Search()">点击搜索</button>
     </div>
 </div>
-<div class="container" style="max-width: 100%;">
-    <table class="table table-bordered"
-           style="table-layout: fixed;word-break: break-all;word-wrap: break-word;">
-        <thead>
-        <tr>
-            <th class="warning">用户名</th>
-            <th>创建时间</th>
-            <th>来源</th>
-            <th>评论</th>
-            <th>点赞数</th>
-        </tr>
-        </thead>
-        <tbody id="warp" style="display: table-row-group;">
-        <th colspan="5" scope="col" style="text-align: center;font-size: 24px;">暂无数据</th>
-        </tbody>
-    </table>
+<div class="container" style="max-width: 100%;height: calc(100% - 90px);">
+
+<textarea name="" id="textarea" cols="30" rows="10" readonly="" style="
+    width: 100%;
+    height: 100%;
+"></textarea>
 </div>
 </body>
 </html>

Різницю між файлами не показано, бо вона завелика
+ 13 - 155
js/Comment.js