2 回答

TA貢獻2080條經驗 獲得超4個贊
嘗試以下操作:
<!DOCTYPE html>
<html>
<head>
<title>Project</title>
</head>
<body>
<div class="container">
<?php
$output = shell_exec('sh /var/www/html/weather.sh');
echo "<pre>$output</pre>";
?>
</div>
<style>
.container {
width: 90%;
margin: 0 auto;
}
</style>
</body>
</html>

TA貢獻1802條經驗 獲得超5個贊
<!DOCTYPE html>
<html>
<head>
<title>Project</title>
</head>
<body>
<?php
$output = shell_exec('sh /var/www/html/weather.sh');
?>
<table align="center" width="400" border="1">
<tr>
<td><?php echo "<pre>$output</pre>"; ?></td>
</tr>
</table>
<table align="center" width="400" border="0">
<tr>
<td><?php echo "<pre>$output</pre>"; ?></td>
</tr>
</table>
<table align="center" width="800" border="1">
<tr>
<td><?php echo "<pre>$output</pre>"; ?></td>
</tr>
</table>
</body>
</html>
嘗試所有組合并選擇最適合您的組合。意大利萬歲!
- 2 回答
- 0 關注
- 265 瀏覽
添加回答
舉報