When developing a PC page, using Chrome's developer tools, you can easily capture the DOM elements of the page and modify the style to facilitate debugging, but the phone is cumbersome because there is no way to open the developer tool to view the elements directly. Can actually be detected by connecting the device to the PC using the PC's developer tool
First, for Android devices
1. Start the developer mode on Android devices
2. Connect the device to the PC and enter it in the Chrome browser address bar: chrome://inspect/#devices
3, when the Web page opened on the phone, Chrome will detect the Web page, you can directly debug
Second, for iOS devices
PS: If you are using a Mac computer, you can find it directly in Safari development, my iphone can detect the page
1, in the iphone settings-"safari-" Advanced-"Web Inspector." Open it
2. Install Ios_webkit_debug_proxy and Remotedebug IOS WebKit on your computer Adapter
3. Start Remotedebug IOS WebKit Adapter
Remotedebug_ios_webkit_adapter--port=9000
4, in the Chrome address bar input: chrome://inspect/#devices, in the Discover network targets inside add localhost:9000, you can debug the phone page in Chrome
Debug your phone page (iOS and Android) via Chrome browser