如何table在div使用html中居中?
我已将内容放在div标记中,并将text-align属性设置center为如下所示.
text-align: center;
Run Code Online (Sandbox Code Playgroud)
这没效果.
下面是我的HTML.
<html>
<body>
<div style="text-align:center">
<p>
text test
</p>
<table border="1">
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
<tr>
<td>400</td>
<td>500</td>
<td>600</td>
</tr>
</table>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 我要编写C#代码来检查C,D,E ......(Windows磁盘驱动器)是否存在?最后找到客户端窗口中存在哪个驱动器,复制我的文件.
我想编写类似于以下逻辑的代码:
If ( !Exist(Drive "C:\" ) )
{
If ( !Exist(Drive "D:\" ) )
{
If ( !Exist(Drive "E:\" ) )
{
...
search to fined existence drive
copy file to a path of that existence drive
}
}
}
Run Code Online (Sandbox Code Playgroud) 我的表中有一个 NVARCHAR 字段。(使用Oracle 11g)
我想检查它有字符数据或数字数据。
帮我写一个选择查询。(使用 PL-SQL)
我想我可以用案例来写它,但我无法实现它。(我没有方法检查 isChar 和 isNumber)
select
case <myField>
when <isChar> then
<this is a char data>
when <IsNum> then
<this is number data>
End
from <myTable>
Run Code Online (Sandbox Code Playgroud)