css - 如何在桌面和移动设备上拥有单独的导航?
问题描述
- 我使用这个模板作为我的投资组合的基础,https://html5up.net/phantom
目前,网络和移动设备都有汉堡导航。我怎样才能让汉堡菜单只在手机上显示?我尝试将菜单 CSS 的 @media 屏幕和 (max-width: 736px) { 更改为 480 但它没有改变任何东西..?
- 还有没有办法改变菜单的粉红色悬停?
解决方案
/*use*/
@media only screen and (max-width: 736px){
/*then put the hamburger class here*/
}
推荐阅读
- javascript - 可以跨计算机查看/使用 localStorage 吗?
- javascript - 使用 Javascript 在 Canvas 中的弧上绘制文本的问题
- javascript - 如何修复“加载资源失败:服务器响应状态为 400 ()”API 获取错误
- r - 消除 R 中除 NA 值外的所有重复项
- mongodb - mongodb:两个字段之间的差异之和
- excel - 将上个月的最后一天添加到 Excel 中的列
- javascript - 在几个特定的时间后运行相同的功能
- akka - 如何立即通知 Akka WebSocket 服务器 WebSocket 客户端已停止
- c# - 将机器人部署到 Azure 后,在网络聊天键入消息中进行测试返回“未找到”HTTP 状态代码
- c++ - 如何从 C++ 中实例化对象的函数指针调用函数?