0

私はBootstrapとLessが初めてで、苦労しています..

次のサイトからサンプルをコピーしようとしていますが、正しく表示されません。私は何を間違っていますか? http://bootsnipp.com/snipps/credit-card-payment-form-2

Nuget を介して「Bootstrap Less Source」と「Bundle Transformer: LESS」をインストールして、Less を CSS に変換しました。MVC BundleConfig.cs も変更しました

bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                    "~/Scripts/bootstrap.js"));
bundles.Add("~/Content/css").Include(
                    "~/Content/site.less",
                    "~/Content/bootstrap/bootstrap.less");

以下を含むようにビューを更新しました。

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/bootstrap")

ありがとう

4

1 に答える 1