A portable computer as an example of an electronic apparatus has a main unit, and a cover member placed on the upper surface of the main unit. The main unit has a housing. A component mounting part is formed on the upper surface of the housing. The component mounting part is covered with the cover member. The cover member has a sliding-type first cover, and a fitting-type second cover. The first cover is placed on a first area of the component mounting part. The first cover has a lock portion, which is slid in the width direction of the housing, and engages with the housing. The second cover is placed on a second area of the component mounting part not covered with the first cover. The second cover is fit to the housing from the upper side of the component mounting part.