\begin{table}[h!]
\centering
\begin{tabular}{| c | |c |}
\hline
Feature & Elaboration \\ [3ex]
\hline\hline
\\Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\ [10ex]
\\Interactivity & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\ [10ex]
\\Data Handling & The data of a user is recorded by the system. It can be easily accessed in the system. \\ [10ex]
\hline
\end{tabular}
我写的文本没有完全显示在表格中。我犯了什么错误,或者应该纠正什么?
答案1
对第二列使用正确的列类型。您需要文本换行,因此您可以使用p{<width>}
列类型,或者最好使用X
自动计算剩余空间的类型,tabularx
后者使用。此外,不要像 那样手动添加 vspace \\ [3ex]
,而是只需将数组拉伸增加\renewcommand{\arraystretch}{1.5}
即可。
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\renewcommand{\arraystretch}{1.5}
\begin{table}[!htbp]
\centering
\begin{tabularx}{\linewidth}{|c||X|}
\hline
Feature & Elaboration \\ \hline\hline
Budget Friendly & The system inputs financial budget of user in it's system, and provides a list of hotels that can be accessed with that budget. \\
Interactivity & While using the system, the barrier between machine and user is eradicated to the maximum capability. A user should feel as he/she is talking to a representative of a hotel. \\
Data Handling & The data of a user is recorded by the system. It can be easily accessed in the system.\\ \hline
\end{tabularx}
\end{table}
\end{document}