Skip to content

Update rem2px.js#12

Open
wumingli wants to merge 1 commit intohbxeagle:masterfrom
wumingli:patch-1
Open

Update rem2px.js#12
wumingli wants to merge 1 commit intohbxeagle:masterfrom
wumingli:patch-1

Conversation

@wumingli
Copy link

个人觉得head中append一个div元素不太合理,做了一点修正,看是否有必要merge?

@hbxeagle
Copy link
Owner

hbxeagle commented Aug 2, 2017

放在head里面是因为,这段调整是需要放在head中执行(此时body节点还没创建出来),保证在body的可视内容出来之前已经对viewport进行了处理,并生效。head里面加一个div确实有点问题,有改进的地方。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants