<div class="hktshare">
<div>会客厅div>
div>
<div class="del_mask" id="hktshare_pop" style="display: none;">
<div class="del_block">
<div class="del_content">即将打开"智能会客厅"小程序div>
<div>
<div class="del_cancel" onclick="delhkt()">取消div>
<div class="wx_open_box">
<wx-open-launch-weapp id="launch-btn" username="gh_4b4a3e566703" path="pages/index/index?">
<script type="text/wxtag-template">
<button class="btn">确定button>
script>
wx-open-launch-weapp>
div>
div>
div>
div>
在你这代码中使用了一个微信小程序的标签<wx-open-launch-weapp>
这个标签内部,使用了一个<script>
标签,并使用了type属性设置了它的类型为"text/wxtag-template"。这个<script>
标签内部的内容(即<button class="btn">确定</button>
)是一个模板,它用于指定微信小程序打开按钮的显示样式。
但是在代码中,这个模板并没有被正确的使用。在<wx-open-launch-weapp>
标签内部,可以通过使用<template>
标签(而不是<script>
标签)来使用模板。例如:
<wx-open-launch-weapp id="launch-btn" username="gh_4b4a3e566703" path="pages/index/index?">
<template>
<button class="btn">确定</button>
</template>
</wx-open-launch-weapp>
这样确定按钮就应该能正常显示了。
望采纳。
应该是你 color 影响的 吧 。button的