WeChat Mini Programs custom title (UI students disrelish the original ugly want us to write) how to align the text with their own capsules?

such as question: Mini Program custom title bar height calculation, how to calculate the height so that Android and ios title text are aligned with the capsule?

Business scenario: ui students think that the original is ugly, so we need to write our own title bar

clipboard.png


wx.createSelectorQuery () this api doesn't know if it works for you


this. Are you UI going to heaven?
you cannot customize the title bar at this time!
can only be configured with window


this is the best solution I have ever found

Menu