Phase transition and crossover behavior of colloidal fluids under confinement