前端
键盘叔叔
做有价值的事,快速行动,坚持到底
展开
-
Content-Type设置后但没生效
我设置header('Content-Type', 'application/json');但是没生效,response中的content-type还是为:text/html; charset=UTF-8原来是因为header里面只能设置一个字符串,应该设置为:header('Content-Type:application/json');...原创 2021-09-23 13:23:45 · 5542 阅读 · 0 评论 -
【已解决】media的自适应调整布局失效
在vscode中,使用了自动格式化插件后,@media设置的max-width失效了。经过仔细排查,原来是@media handheld, only screen and (max-width:1024px) {原创 2021-06-17 15:58:46 · 609 阅读 · 1 评论