nuget更新后样式混乱. [英] Style messed up after nuget update.
本文介绍了nuget更新后样式混乱.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我更新了默认MVC应用程序的多个nuget包,但页面样式弄乱了.看起来好像正在加载部分样式,但是我无法找到问题所在.
I updated multiple nuget packages of default MVC application and my page style got messed up. Looks like partial styles are being loaded but I am unable to track down what went wrong.
先谢谢了.
我的导航栏在更新之前.
My Navbar before update.
更新后的我的导航栏.
推荐答案
很抱歉听到这个消息.
Sorry to hear that.
我遇到了同样的问题,这花了我很多钱.真令人沮丧幸运的是我找到了解决方案.
I got the same problem, and it cost me a lot. So frustrating. Fortunately I found the solution.
这是因为 Bootstrap 的新版本.要解决此问题,请按照以下步骤操作:
It is because of the the new version of Bootstrap. To solve the problem, please follow the steps below:
- 右键单击您的项目,然后转到管理NuGet软件包":
- 然后找到引导程序,单击它.您会在右侧看到版本选择器.点击下拉按钮:
- 然后找到引导程序的较旧版本(最有可能是3.3.7适用于您),然后选择它:
- Then find an older version of bootstrap (most likely, 3.3.7 will work for you), and select it:
- 然后单击更新"按钮:
- 然后您会看到"bootstrap"已更改回您选择的旧版本:
- 然后刷新您的网页,您可以看到它已恢复正常.
如果不需要,请不要重复这些步骤.
Don't repeat these steps if you don't have to.
这篇关于nuget更新后样式混乱.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文