表のテキストが右余白を超えて拡張されます

表のテキストが右余白を超えて拡張されます
\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

2 番目の列には正しい列タイプを使用します。テキストの折り返しが必要なので、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}

ここに画像の説明を入力してください

関連情報