1. Functions: The bottom hover button is not displayed on the first screen

Link: m.mumway.com/qhq/chankan…

The PC and ios are supporting document. The documentElement. ScrollTop, but does not support android mobile phones and will find android present has always been “0”

The solution: the document. The documentElement. ScrollTop | | document. The body. The scrollTop | | window. PageYoffset;

2, function: the page needs to show the newline effect

Such as:

<! -- This can be done with tags -->
<pre></pre>
<! - v - HTML commands -- -- >
<span v-html="text.replace(/[\r\n]/g, '<br />')">
Copy the code

3, English words and numbers do not automatically fold the problem

Word-break :break-all; word-break:break-all;

4. The problem of blank space at the bottom of the soft keyboard on the mobile end

Window.scrollto (0,0)

5. IOS time format

Ios is a time pit, ios system for (2020-01-23) such format does not support. NAN NAN NAN is returned. At present, the value of the saas system time is in value-format format, so the mobile terminal needs to do some processing when getting the value.

6. Improve your development efficiency with efficient CSS

Address: juejin. Cn/post / 684490…

7, some use JS package

Address: juejin. Cn/post / 684490…