An antenna structure and an electronic device. The antenna structure includes a
radiating element, a first feeding element, a second feeding element, a grounding element, and a grounding
branch; the first feeding element has a first feeding portion, and the first feeding element is configured to be connected to the
radiating element through the first feeding portion; the second feeding element has a second feeding portion, and the second feeding element is configured to be connected to the
radiating element through the second feeding portion; the grounding element is connected to the radiating element, and the grounding element is located between the first feeding element and the second feeding element; the grounding
branch has a first end and a second end, the first end is connected to the second feeding portion, and the second end is connected to a
ground plane; the first feeding element is configured to feed a
signal to excite the radiating element to generate a first
radiation field pattern, and the second feeding element is configured to feed another
signal to excite the radiating element to generate a second
radiation field pattern; the first
radiation field pattern is different from the second
radiation field pattern. The antenna structure and the electronic device provided by the present application can improve the isolation between the first antenna and the second antenna.