V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
sugarkeek

求问,小程序的菜单栏怎么和右边的功能键垂直居中?

  •  
  •   sugarkeek · Mar 11, 2025 · 2370 views
    This topic created in 414 days ago, the information mentioned may be changed or developed.
    我目前只知道系统的状态栏的高度

    3 replies    2025-03-11 14:33:03 +08:00
    gloye
        1
    gloye  
       Mar 11, 2025   ❤️ 1
    小程序有个 api 是获取右边胶囊位的位置 wx.getMenuButtonBoundingClientRect
    https://developers.weixin.qq.com/miniprogram/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html
    Zaner
        2
    Zaner  
       Mar 11, 2025


    尝试一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5375 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:53 · PVG 15:53 · LAX 00:53 · JFK 03:53
    ♥ Do have faith in what you're doing.