After Vue development, the packaged and deployed website page turns gray

After the development of vue, the front-end page of packaged deployment turns gray, you only need to find the index.html file and add a piece of css code;

<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="chrome=1,IE=edge"><meta name=description content=新时代><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>新时代</title><script>// document.addEventListener('DOMContentLoaded', function() {
   
    
    
			// 	document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
			// })</script><style>html {
   
    
    

Guess you like

Origin blog.csdn.net/weixin_42551921/article/details/128122346