显示json中的数据

时间:2016-05-30 02:16:55

标签: html json

所以这是我的html源代码



<!DOCTYPE html>
<html >
  <head>
    <meta charset="UTF-8">


    <title>Server Status</title>
    
    
    
    
        <style>
      /*	
	Created by: andreleon911
	===================
	License:
	RagingPE
	===================
	Author: @xZeroMCPE (Andre)

 */

@charset "UTF-8";
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,700);

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  line-height: 1.42em;
  color:#A7A1AE;
  background-color:#1F2739;
}

h1 {
  font-size:3em; 
  font-weight: 300;
  line-height:1em;
  text-align: center;
  color: #4DC3FA;
}

h2 {
  font-size:1em; 
  font-weight: 300;
  text-align: center;
  display: block;
  line-height:1em;
  padding-bottom: 2em;
  color: #FB667A;
}

h2 a {
  font-weight: 700;
  text-transform: uppercase;
  color: #FB667A;
  text-decoration: none;
}

.blue { color: #185875; }
.yellow { color: #FFF842; }

.container th h1 {
	  font-weight: bold;
	  font-size: 1em;
  text-align: left;
  color: #185875;
}

.container td {
	  font-weight: normal;
	  font-size: 1em;
  -webkit-box-shadow: 0 2px 2px -2px #0E1119;
	   -moz-box-shadow: 0 2px 2px -2px #0E1119;
	        box-shadow: 0 2px 2px -2px #0E1119;
}

.container {
	  text-align: left;
	  overflow: hidden;
	  width: 80%;
	  margin: 0 auto;
  display: table;
  padding: 0 0 8em 0;
}

.container td, .container th {
	  padding-bottom: 2%;
	  padding-top: 2%;
  padding-left:2%;  
}

/* Background-color of the odd rows */
.container tr:nth-child(odd) {
	  background-color: #323C50;
}

/* Background-color of the even rows */
.container tr:nth-child(even) {
	  background-color: #2C3446;
}

.container th {
	  background-color: #1F2739;
}

.container td:first-child { color: #FB667A; }

.container tr:hover {
   background-color: #464A52;
-webkit-box-shadow: 0 6px 6px -6px #0E1119;
	   -moz-box-shadow: 0 6px 6px -6px #0E1119;
	        box-shadow: 0 6px 6px -6px #0E1119;
}

.container td:hover {
  background-color: #FFF842;
  color: #403E10;
  font-weight: bold;
  
  box-shadow: #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -3px 3px, #7F7C21 -4px 4px, #7F7C21 -5px 5px, #7F7C21 -6px 6px;
  transform: translate3d(6px, -6px, 0);
  
  transition-delay: 0s;
	  transition-duration: 0.4s;
	  transition-property: all;
  transition-timing-function: line;
}

@media (max-width: 800px) {
.container td:nth-child(4),
.container th:nth-child(4) { display: none; }
}
    </style>

    <script>
  window.console = window.console || function(t) {};
</script>

    
    
  </head>

  <body translate="no" >

    <h1><span class="blue">&lt;</span>RagingPE<span class="blue">&gt;</span> <span class="yellow">Status</pan></h1>
<h2>View all @RaginngPE server  <a href="http://twitter.com/RagingPE" target="_blank">Status</a></h2>

<table class="container">
	<thead>
		<tr>
			<th><h1>Server</h1></th>
			<th><h1>Playing now</h1></th>
			<th><h1>Description</h1></th>
			<th><h1>Status</h1></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Faction: DragonClaw</td>
			<td>23/50</td>
			<td>Basic faction server for newcomers</td>
			<td>Online</td>
		</tr>
		<tr>
			<td>SkyWars</td>
			<td>42/150</td>
			<td>Eliminate other players!</td>
			<td>Online</td>
		</tr>
		<tr>
			<td>UHC</td>
			<td>13/150</td>
			<td>Can you survive?</td>
			<td>Online</td>
		</tr>
	</tbody>
</table>
    
    
    
    
    <script>
  if (document.location.search.match(/type=embed/gi)) {
    window.parent.postMessage("resize", "*");
  }
</script>

    
  </body>
</html>
 
&#13;
&#13;
&#13;

如何从https://mcapi.ca/query/Play.RagingPE.net/mcpe获取json数据 我希望结果&#34;在线&#34;:禁用桌面上我在上面提供的html代码上的玩家。请帮忙

0 个答案:

没有答案