I want this table to fit the page width. Also, vertially align the content to center of the box. Please find the code for the table below.
\documentclass[12pt]{article}
\usepackage{amsmath,amsthm}
\usepackage{mathtools}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{table}[h!]
\begin{tabular}{|c|c|c|r|r|r|r|r|r|r|r|}
\hline
\multicolumn{2}{|c|}{\multirow{2}{*}{Heading 1}} & \multicolumn{9} {c|}{$\theta$} \\ \cline{3-11}
\multicolumn{2}{|c|}{} & \multicolumn{3}{c|}{1} & \multicolumn{3}{c|}{1.5} & \multicolumn{3}{c|}{2}\\ \hline \multicolumn{2}{|c|}{$\alpha\Rightarrow$} & 0.1 & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} & \multicolumn{1}{c|}{0.1} & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} & \multicolumn{1}{c|}{0.1} & \multicolumn{1}{c|}{0.2} & \multicolumn{1}{c|}{0.3} \\ \hline
\multirow{3}{*}{x1/x2} & 1/3 & \multicolumn{1}{r|}{34.38\%} & 16.95\% & 9.74\% & 87.58\% & 36.25\% & 45.85\% & 30.10\% & 67.21\% & 59.25\% \\ \cline{2-11}
& 1 & \multicolumn{1}{r|}{61.52\%} & 79.96\% & 68.17\% & 75.50\% & 36.18\% & 48.46\% & 32.88\% & 29.26\% & 9.76\% \\ \cline{2-11}
& 3 & \multicolumn{1}{r|}{53.70\%} & 68.99\% & 85.41\% & 37.80\% & 85.88\% & 25.70\% & 32.32\% & 93.95\% & 81.96\% \\ \hline
\end{tabular}
\end{table}
\end{document}



tabularxpackage features, you need to use also atabularxenvironment with the syntax\begin{tabularx}{<width>}{<columnspec>} ... \end{tabularx}– BambOo Aug 16 '18 at 12:32