Earth can have total solar eclipses because our Moon appears to be about the same size as the Sun. The Sun is some 400 times bigger than the Moon. But since the Moon is about 400 times closer than the Sun, when it comes directly between the Earth and the Sun, it can hide the Sun for a short period of time.
Mars is farther from the Sun than we are, so the Sun looks smaller from Mars. However both of the Martian moons are so small that when they come between the planet and the Sun, neither can block out the Sun. Deimos would look like a small black dot crossing the Sun - not an eclipse, but a transit like the transits of Venus seen from Earth.
Bigger than Deimos,
Phobos could cause an annular eclipse. The Curiosity rover photographed such an eclipse.