Whenever I open my visual studio and go live sometime my page run correctly and sometime it give unexpected result with out changing a single dot in my code. I have shared my screen shots for understanding the issue please compare both ss and help me anyone please.
CodePudding user response:
You're using Chrome's mobile device emulator. Sometimes you need to refresh the page after enabling the emulator (or after live updates) so the page can render properly.
I prefer to have the dev tools on the side simply resize the panel to test various screen sizes while I work, without having the emulator enabled. This doesn't restrict screen height, but it shows width nicely without the problem you've encountered. I might then use the emulator to do final checks.
CodePudding user response:
if the problem is related to the fact that when you modify your code in your IDE and it does not change anything on your page. try instead to delete your browsing history on the browser including cookies, then I think it should pass.