An electronic component has a portion adjacent to a surface of a base to
which elements are mounted is immersed into a liquid resin or semi-solid
resin such that an element surface of the base to which the elements are
mounted is not immersed and in which the resin is then hardened. This
causes a gap to be disposed between the hardened resin and the element
surface of the base, such that a cover supported by some of the elements
is formed.