<wx-open-launch-weapp username="gh_111111111" id="launch-btn">
<script type="text/wxtag-template">
<button style={{ position: 'fixed', bottom: 10, left: 10, width: 100, height: 50, backgroundColor: 'orange', padding: '5px 10px', fontSize: 14, borderRadius: 4, color: '#fff', fontWeight: 'bold' }}>打开</button>
</script>
</wx-open-launch-weapp>
react这样能正常显示,需要position: absolute或者fixed,需要怎么写?真机试了很久了都不显示。
懂了
<div style={{ position: 'fixed', bottom: 10, left: 10 }}> <wx-open-launch-weapp username="gh_111111111" id="launch-btn"> <script type="text/wxtag-template"> <button style={{ width: 100, height: 50, backgroundColor: 'orange', padding: '5px 10px', fontSize: 14, borderRadius: 4, color: '#fff', fontWeight: 'bold' }}>打开</button> </script> </wx-open-launch-weapp> </div>