1
shiye515 2014-01-12 12:46:02 +08:00 via Android
这技术叫pushState,改变url但不刷新页面。
|
3
clippit 2014-01-12 13:12:00 +08:00 1
DOM 里新插入一个节点
#lightbox { position: fixed; width: 100%; background-color: rgba(0,0,0,.85); top: 0; left: 0; bottom: 0; right: 0; overflow: hidden; z-index: 105; opacity: 1; -moz-transition: opacity 0.15s ease-out; -o-transition: opacity 0.25s ease-out; -webkit-transition: opacity 0.25s ease-out; -ms-transition: opacity 0.25s ease-out; transition: opacity 0.25s ease-out; } |
4
learnshare 2014-01-12 13:30:43 +08:00
弹出窗口是类似于 modal,改变 URL 是 pushState
|
5
crossmaya 2014-01-13 10:14:35 +08:00
github上有开源的history库
|
6
guoqiao OP @clippit 谢谢你帮我找到了最关键的部分. 我已经搞定了: http://dev.writehere.com/. 非常感谢.
|