Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.6k views
in Technique[技术] by (71.8m points)

ios显示button文字与android显示button文字不一致

button设置宽,高,android正常显示 已超时 三个字;ios只显示 已超 两个字
<button class="timeOutbutton" v-show="o.timeout">已超时</button>
<style>
.timeOutbutton{
width: 50px;
height: 15px;
font-size: 11px;
border: solid 1px #ff001f;
border-radius: 5px;
background-color: #ff001f;
color: #ffffff;
margin-left: 10px;
}
</style>
imageimage
求如何ios显示button和android显示的button一致 都可完全显示已超时


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. *{padding:0;margin:0} 去掉各个浏览器特定样式
  2. 既然不想换行 white-space: nowrap;

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...