Comments (4)
不知道有没有理解你的问题,我的问题是小屏(iphone)浏览器上导航栏不会默认收起。因为不太会js,所以就先临时workaround了:
cherrot/cherrot.github.io@1297da0
// only remove open in small screen
if($(window).width() <= 1024) {
menu.add(sidebar).add(main).removeClass('open');
}
from suyan.github.io.
你说的导航栏问题是:刚进入首页的时候,默认显示文章列表,对么?我刚刚也解决了一下,用的你的关键代码(谢谢!),不过我检测了useragent:
basicworld.github.io/commit/d792352
// test if it is phone
// if true then remove open
var Agents = new Array("Android", "iPhone", "iPod");
var userAgentInfo = navigator.userAgent;
for (var v = 0; v < Agents.length; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
menu.add(sidebar).add(main).removeClass('open');
break;
}
}
不过我的问题不是这个,而是:这个主题在浏览长网页时,safari的导航栏(有前进、后退、分享等按钮那一栏)、地址栏不能收起
试了下你的博客,也是这样的
from suyan.github.io.
不用iphone不了解,不过我猜safari是在网页完全加载完后会自动收起导航栏?
如果是这样,那有些资源由于GFW所以一直超时,可能就会触发你的问题?(比如disqus评论、google的web fonts、gravatar头像等)
from suyan.github.io.
越过GFW测的,我再折腾一下^_^
from suyan.github.io.
Related Issues (20)
- 左侧边栏的排序
- 你好,为什么我fork了之后没有页面? HOT 3
- 请您帮我看看,我哪里弄错了 HOT 4
- Deprecation: The 'pygments' configuration option has been renamed to 'highlighter'.
- 关于按日期归档功能 HOT 2
- 上传 Github 上,Github page 无样式 HOT 3
- 如何增加左边的分类呢?谢谢作者。 HOT 1
- 增加文章的TOC
- 求助,编译报错 HOT 3
- 右上角toc的触发方式 HOT 2
- 引用符号显示错误 HOT 1
- url && baseurl 设置问题
- 一个别字
- 请教博客首页左侧列表怎么修改 HOT 1
- 文章底部单词拼写错误 应该是Built, 写成了Buit HOT 1
- 这个主题很不错,感谢 HOT 1
- 小屏幕下切换到列表页面目录箭头不消失 HOT 1
- 网站左上角的头像如何设置呀
- 手机Safari中左侧分类栏无法显示
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suyan.github.io.