A computer enclosure includes a cage (10) and a drive bracket (40). The cage has two side panels (22), and each side panel forms a first slideway (26) and an aligned second slideway (30). Each first slideway includes a blocking portion (28). The drive bracket has two side walls (42). Each side wall attachingly receives a first sliding member (60), and forms a second sliding member (80). A slot (66) is defined in each first sliding member, thereby forming an elastic portion. A handle (68) is formed at a front end of the elastic portion, and a barb (72) protrudes from a top face of the elastic portion. In assembly, the drive bracket is pushed into the cage, with the second and first sliding members sliding along the second and first slideways. The barbs engage with the blocking portions, thus preventing the drive bracket from accidentally detaching from the cage.
展开▼