From 58bb9f43272b507d66b65c194fe2154eeb433f63 Mon Sep 17 00:00:00 2001 From: frankfang Date: Sun, 7 May 2017 23:25:24 +0800 Subject: [PATCH] update position --- demos/view-source.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/view-source.js b/demos/view-source.js index 0b526a7..fa5bc2b 100644 --- a/demos/view-source.js +++ b/demos/view-source.js @@ -3,11 +3,12 @@ let name = parts[parts.length - 1 - 1] let a = dom.create(`查看源码`) 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) }