A heat dissipation device includes a base and a fastener. The fastener includes a clasping portion, an elastic member placed and a first gasket. The clasping portion includes a fixing part, an operating part, and a connecting part connected to the fixing part and the operating part. The connecting part defines a slip groove. The first gasket interferingly fits the slip groove of the clasping portion. The elastic member is placed around the connecting part of the clasping portion and is arranged between the operation part and the first gasket. The first gasket abuts the base after the fixing part extending through the base.