Skip to content

Commit

Permalink
update position
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFang committed May 7, 2017
1 parent 5b70211 commit 58bb9f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demos/view-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
let name = parts[parts.length - 1 - 1]
let a = dom.create(`<a id="viewSource" href="https://github.com/FrankFang/wheels#如何阅读源代码">查看源码</a>`)
a.style.position = 'fixed'
a.style.top = '.2em'
a.style.bottom = '.2em'
a.style.right = '.2em'
a.style.background = 'black'
a.style.border = '1px solid white'
a.style.color = 'white'
a.style.padding = '.2em'
a.style.textDecoration = 'none'
document.body.appendChild(a)
}

0 comments on commit 58bb9f4

Please sign in to comment.