Patent attributes
A display method and apparatus, and an electronic device are provided, the method includes: displaying a browsing object in a first region, wherein the first region displays on a online documentation; determining, in response to an instruction to display a comment for the browsing object, a display structure of a comment layer based on a predefined display parameter of the comment for the browsing object, wherein the predefined display parameter is configured to indicate a size of a second region in which the comment layer is located; and generating the comment layer based on the determined display structure, and displaying the comment in the generated comment layer, wherein a range of the second region is smaller than a range of the first region in a first direction or a second direction.