A cover for an electronic device includes a bottom plate, a first support plate, a top plate, two bending plates and a rubber trim. The bottom plate has a first end and a second end that are opposite to each other. The first support plate is connected to the first end of the bottom plate. The top plate is connected to the second end of the bottom plate, for expanding or closing relative to the bottom plate, and the top plate having a through hole. The two bending plates are opposite to each other and connect the bottom plate and the top plate. The two bending plates, the bottom plate and the top plate form an accommodating space. The rubber trim is disposed on the first support plate. When the top plate closes relative to the bottom plate, the top plate pass through and protrudes from the through hole.