我部署了本地版本並在谷歌瀏覽器上查看它,發現字體大小,元素位置和佈局的差異。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