我部署了本地版本并在谷歌浏览器上查看它,发现字体大小,元素位置和布局的差异。VS2017 chrome(调试)和Google Chrome之间的前端设计区别
示例: 图像的左侧部分是在Windows 10上运行的Google Chrome,右侧部分是在调试项目时运行的内置Chrome。
CSS & JS是精缩在释放,但匹配的开发版本...
微软边缘看上去与谷歌浏览器(左部)
库:
"jQuery": "3.2.1",
"bootstrap": "v4.0.0-alpha.6",
"bootstrap-validator": "v0.11.9",
"signalr": "v2.2.2",
"cookie": "v1.2.2"
包括:
<environment names="Development">
<link rel="stylesheet" href="~/lib/tether/dist/css/tether.css" />
<link rel="stylesheet" href="~/lib/tether/dist/css/tether-theme-basic.css" />
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" />
</environment>
<environment names="Staging,Production">
<link rel="stylesheet" href="~/lib/tether/dist/css/tether.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/tether/dist/css/tether-theme-basic.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
</environment>
适用的CSS代码字体家族(的site.css):
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
}
检查我注意到,在开发版本的元素后,该元素的样式与bootstrap.css加载的边界。
但是,在发布版本中,边框缺失是因为CSS是从bootstrap/reboot.scss加载的。
仍在调查......
不可能从图像中知道 – epascarello
@epascarello atleast为我提供了一种提高帖子质量的方法,而不仅仅是公然地downvoting和评论,说它不可能帮助(而且显然不是因为有人已经提供了我下面有可能的答案)。 – NullBy7e