我需要编写一个脚本来查明给定文档是否具有.doc格式.我使用的是亚马逊Linux机器.我试图利用linux文件命令.对于给定的doc文件,file命令输出文件信息如下:
sample_file.doc:复合文档文件V2文档,无摘要信息
我发现file命令为2003 excel文件(.xls)提供了相同的文件类型信息.
我想知道所有文件类型(如doc,xls)属于Composite Document File V2 Document,以及如何在Amazon Linux 2012机器中检查给定文件是否为doc文件?
我在表格单元格中使用了不同的垂直对齐值,发现垂直对齐:顶部和垂直对齐:基线的行为相同。这是一个例子。
<!DOCTYPE html>
<style>
table, td, th {
border: 1px solid black;
}
td#top {
height: 50px;
vertical-align: top;
}
td#baseline {
height: 50px;
vertical-align: baseline;
}
</style>
<body>
<table>
<tr>
<td id="top">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only …Run Code Online (Sandbox Code Playgroud)