引入hyperref包,然后在网址上使用\url{}
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{tabular}{|l|l|}
\hline
URL & 换行示例 \\
\hline
\url{http://www.example.com/very-long-url-that-needs-to-break} &
\url{http://www.example.com/another-very-long-url} \\
\hline
\end{tabular}
\end{document}