html - 在手机上隐藏按钮

标签 html css mobile hide information-hiding

这是我的网站: http://site9171756.91.webydo.com/?v=1

有什么方法可以隐藏手机上的按钮吗?我想为移动设备编写不同的按钮。这是我对按钮的编码。

HTML

<a href="http://site9171756.91.webydo.com/Info.html" target="page3"
class="Button1" style="position: absolute; left: 60%; top: 400px; z-index:
1000;"  >Bliv forhandler</a>

CSS:

.Button1 {
font-family: Arial;
color: #FF0000;
font-size: 20px;
background: #ffffff;
padding: 10px 20px 10px 20px;
border: solid #FF0000 2px;
text-decoration: none;
} 

.Button1:hover {
  background: #FF7A7A;
  text-decoration: none;
}

问候 =)

最佳答案

您可以在移动设备上使用媒体查询隐藏按钮

@media (max-width: 480px) {
  .Button1 {
    display: none;
  }
}

可以找到有关媒体查询的更多详细信息 herehere

关于html - 在手机上隐藏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32286089/

相关文章:

javascript - 尝试在 JQUERY 中显示更多文本时,我无法让 .show 工作

android - 为不同的手机制作手游需要担心什么?

android - 是否可以从我的应用程序获取信息并覆盖另一个应用程序?

javascript - 如何制作具有可变高度主体的页眉/主体/页脚 'popup' div?

actionscript-3 - Gestouch 仅在映射到舞台时有效

jquery - <select> 标签需要选项上的垂直滚动条

html - 添加文本时 Div 移动,自动换行不起作用

javascript - 获取下拉选择时显示的 CKEDITOR 内容

html - 将 Bootstrap 容器背景扩展到页面边缘

javascript - 自动滚动元素列表