The invention discloses a support for a mobile phone or a tablet computer. The support comprises a cross beam, covers, a fixing block, sliding blocks, supporting legs and supporting leg fixing bases;a sliding groove which is formed in the length direction of the cross beam is formed in the surface of the cross beam, the fixing block is fixed to the middle of the sliding groove, a receding groovefor clamping an object is formed in the surface of the fixing block, the sliding blocks are installed on the two sides of the fixing block, the sliding blocks are in sliding fit with the sliding grooves, and a clamping rod is arranged on each sliding block in a hinged mode. The support has the beneficial effects that the mobile phone or the tablet computer can be conveniently clamped, the height and the angle can be conveniently adjusted, and more excellent experience can be obtained when the mobile phone or the tablet computer is used; and meanwhile each pair of supporting legs are provided with inclined surfaces which are matched with each other; during storage, each pair of supporting legs can be tightly attached to the lower portion of the cross beam, and then the two ends of the covers are inserted and fixed with the two ends of the cross beam, so that regular geometrical shapes are formed, and the support is convenient to carry.