[Tex/LaTex] Block won’t show beamer

beamerblock

I would like to display blocks with beamer, I took a code example here

\documentclass[10pt,a4paper]{beamer}
\usepackage[utf8]{inputenc}
    \usetheme[secheader]{Boadilla}
\begin{document}

\begin{frame}{Title Frame}
    Introduction sentece
    \begin{block}{Title Block 1}
    {
        \begin{itemize}
        \item item 1
        \item item 2
        \end{itemize}
    }
    \end{block}
    \begin{exampleblock}{Title Block 2}
    {
        Text.
    }
    \end{exampleblock}
    \begin{alertblock}{Title Block 3}
    {
        You
    }
    \end{alertblock}
\end{frame}

\end{document}

However it displays this on my computer enter image description here

I tried several themes but the background blocks won't show.

Best Answer

You use .dvi files (latex file.tex) you need to use .ps or .pdf files (pdflatex file.tex)

If you convert your file or directly use pdflatex command you will see the backgound and the border of the blocks