简体   繁体   English

如何让我的特定标题只显示在移动屏幕上?

[英]How Do I Make My Specific Title Show Up Only On Mobile Screens?

This is what I have so far, but I can't get it to work.这是我到目前为止所拥有的,但我无法让它发挥作用。

HTML HTML

<h3 class="screentest">Hello world</h3>

CSS CSS

@media (max-width:750px){
.screentest {display: none;}
}
@media (min-width:750px){
.screentest {display: none;}
}

You have in two @media display:none;你有两个@media display:none; . . Change that display inside @media (max-width:750px) to display:block .@media (max-width:750px)内的显示更改为display display:block

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

相关问题 如何让网页只显示一次? - How do I make a web page show up only once? 如何让这个粘性导航仅在向上滚动时显示? - How do I make this sticky navigation show only on scroll up? 如何在较小的屏幕上水平放置侧边栏? - How do I make my sidebar horizontal on smaller screens? 如何让我的密码提示只在我打开我的网站时出现一次,而不是每次我重新加载页面或重新访问它时出现 - How do I make my password prompt only show up once when I open up my website instead of every time I reload the page or revisit it 如何使 header 仅在大屏幕上具有粘性,但在用户向下滚动时在移动设备上消失? - How can I make the header be sticky only on large screens but disappears on mobile as the user scrolls down? 如何在我的页面上显示我正在使用jQuery附加到我的html的div? - How do I make the div I'm appending to my html with jQuery show up on my page? 如何仅在移动屏幕上加载图像并做出响应? - How to make image load on mobile screens only and be responsive? 如何使网站的移动视图不显示某些元素? - How do I make the mobile view of my website not show certain elements? 如何使我的所有图形显示在html页面上? - How do I make all my graphs show up on my html page? 如何使我的标题和页脚在我的网页上可见? - How do I make my title and footer visible on my webpage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM