简体   繁体   English

我的价值不会使文本居中对齐

[英]My Value won't text align center

Can anyone please help me understand why this text value of "7" is not centering? 谁能帮我理解为什么“ 7”这个文本值不居中吗?

<input id="button7" value="7" onclick='Calc.Input.value += "7"' type="button" class="button"/>

For the web version the 7 is centering, but not the mobile version through media querying. 对于Web版本,7居中,但通过媒体查询不是移动版本。

My Media Query CSS only is; 我的媒体查询CSS仅是;

@media only screen and (min-device-width : 320px) and (max-device-width : 568px) {

.set_1 {
  height: 270px;
  width: auto;
}

.set_2 {
  height: 266px;
  width: auto;
}

.set_3 {
  height: 266px;
  width: auto;
}

.set_4 {
  height: 266px;
  width: auto;
}

.set_5 {
  height: 266px;
  width: auto;
}

.text_box{
  height: 180px;
  width: 730px;
  font-size: 100px;
}

.button {
  height:200px;
  width:200px;
  font-size: 100px;
  text-align: center;
}

}

add: 加:

display: block;

I believe.... 我相信....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM