帮我生成一个HTML页面1-1000级每级给2点1点15的意志1点10的骨1000级以后每升一级给1点属性点
<!DOCTYPE html>
<html>
<head>
<title>Character Leveling Table</title>
<style>
table {
border-collapse: collapse;
width: 100%;
}
<pre><code> th, td {
text-align: left;
padding: 8px;
border-bottom: 1px solid #ddd;
}
tr:hover {background-color:#f5f5f5;}
</style>
</code></pre>
</head>
<body>
<pre><code><h1>Character Leveling Table</h1>
<table>
<thead>
<tr>
<th>Level</th>
<th>Attribute Points</th>
<th>Willpower Points</th>
<th>Bone Points</th>
</tr>
</thead>
<tbody>
<?php
for($i=1; $i<=1000; $i++) {
if($i<=1000) {
$attribute_points = $i * 2;
$willpower_points = $i * 15;
$bone_points = $i * 10;
} else {
$attribute_points = $i - 1000;
$willpower_points = 15000 + ($attribute_points-1)*15;
$bone_points = 10000 + ($attribute_points-1)*10;
}
echo "<tr>";
echo "<td>{$i}</td>";
echo "<td>{$attribute_points}</td>";
echo "<td>{$willpower_points}</td>";
echo "<td>{$bone_points}</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/bELO 著作权归作者所有。请勿转载和采集!