button组件在模拟器中没问题但是一到手机布局就乱了?
发布于 6 年前 作者 limo 5850 次浏览 来自 官方Issues

模拟器里面一切正常,在手机调试或者预览就有很多按钮变形,没有设置type,也不知道怎么才能把默认样式复写干净了,感觉是默认样式导致的

<button class=“book-button”>

&lt;<span style="color: rgb(128, 0, 0);">text </span><span style="color: rgb(255, 0, 0);">class=</span><span style="color: rgb(0, 0, 255);">"button-message"&gt;</span>在线预订<span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">text&gt;</span>

</button>

.book-button{

margin:0;

padding:0;

width:200rpx;

height:45rpx;

line-height:45rpx;

color:#FFFFFF;

background-color:#89765b;

}




1 回复

单独把按钮的代码 和 按钮样式发出来看看

回到顶部