文章详情页
css - 网页宽高固定且大于浏览器(react)
问题描述
把网页放入react框架后,打开html文件,并切换到chrome 的 devtool编辑页面,宽高就固定,而且是比手机屏幕大好几倍。在非devtool下则,不会发生这个现象。
问题解答
回答1:试着在 <head> 里面加上:
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'>
标签:
CSS
相关文章:
1. python相关问题求解决,有偿2. javascript - input输入框触发change事件后,外部元素会被选中3. python - 用__call__ 实现装饰器功能4. javascript - vue2.0中router.repalce跟router.push有什么区别,二者的应用场景是会有怎样的区别?5. javascript - prismplayer播放器全屏问题6. javascript - 在sublime中如何给.vue文件注释?7. python - 请问用cxfreeze打包的可执行程序能反编译出源码么?8. HTML5怎么访问本地文件?9. javascript - 这种上传图片预览怎么做?10. javascript - 把字符串日期转换成一般时间格式后,发现小于10的数字不会自动添加0在前面,如下
排行榜