我试图将每一行(<tr>)放在一个中心table.我有几行不均匀的数字.
这是我的HTML示例:
<!DOCTYPE html>
<html>
<body>
<table border="1">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
</tr>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
目前输出如下所示:
但我希望它是这样的:
如果能够实现这一目标,我将非常高兴知道如何做到这一点.
我正在尝试使用 CodeDeploy 在 AWS 上部署我的应用程序。
这是我的 appspec.yml 文件:
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/todos // <== this dir already exists in my instance
hooks:
ApplicationStop:
...
BeforeInstall:
- location: scripts/prerequisites
timeout: 1200
runas: root
AfterInstall:
...
ApplicationStart:
...
ValidateService:
...
Run Code Online (Sandbox Code Playgroud)
我不断收到以下错误:
错误代码:ScriptMissing
脚本名称:脚本/先决条件
消息:指定位置不存在脚本:/opt/codedeploy-agent/deployment-root/2e557520-7ffe-4881-8c7c-991952c56e05/d-UWR3Z01FE/deployment-archive/scripts/prerequisites
日志尾部:LifecycleEvent - BeforeInstall
我的脚本存储在名为“scripts”的文件中,该文件位于我的应用程序的根目录中。
我错过了什么?还是做错了?如果有人能在正确的方向上帮助我,我将不胜感激!