An electronic device includes a casing and an elastic body. The casing includes: a first wall from which a display screen of a display device is exposed; a second wall that is positioned apart from the first wall in a first direction intersecting the display screen of the first wall; a third wall that extends between the first wall and the second wall; and a fourth wall that extends between the first wall and the second wall. The fourth wall intersects the third wall. The elastic body is disposed at a corner between the third wall and the fourth wall. The elastic body is provided to project out from surfaces of the first wall, the second wall, the third wall, and the fourth wall.