Tag: bootstrap 4

Bootstrap更改Navbar链接颜色

我知道这个话题已经被打死了,但我读到的内容并没有奏效。 我只是想将我的bootstrap导航栏中的链接更改为白色。 我知道我有CSS,因为我可以改变字体大小,但不能改变颜色。 nav .navbar-nav li{ color: white !important; font-size: 25px; } Bartlett Containers LLC

bootstrap模式没有正确弹出

我正试图在铁轨上显示ruby上的模态。 我设置了一个视图按钮,所以无论何时单击,模式都会弹出。 但它没有正常工作。 正如您在图像上看到的那样,模态不应该变暗。 因此,我无法点击任何内容。 这是我的代码: index.html.erb . <%= link_to (' ‘).html_safe, edit_quotation_path(quotation), class: “btn btn-icon btn-fill btn-github”, title: “Edit Quotation ” + quotation.build_quotation_number, ‘data-toggle’ => ‘tooltip’, ‘data-placement’ => ‘top’ %> <%= link_to (' ‘).html_safe, quotation_path(quotation), data: {:confirm => ‘Are you sure you want to delete this quotation?’}, method: :delete, class: “btn btn-icon btn-fill btn-danger”, […]

Ruby on Rails – 不导入SCSS

我正在尝试使用bootstrap gem时创建一个新的RoR应用程序但是我第一次运行它时遇到了一些问题。 看起来Ruby很难包括scss文件 ExecJS::ProgramError in Visitor#index Showing */app/views/layouts/guest.erb where line #8 raised: identifier ‘(function(opts, pluginOpts) {return eval(process’ undefined Guest.erb FooBar 应用。 SCSS * ……….. * It is generally better to create a new file per style scope. * */ @import “bootstrap”; gem文件 ruby ‘2.4.4’ # Bundle edge Rails instead: gem ‘rails’, github: ‘rails/rails’ gem ‘rails’, […]

当我使用数据切换属性时,为什么我的链接会中断(停止导航到其位置)?

我正在玩Rails 5中的Bootstrap 4,我正在尝试使用data-toggle来处理nav-pills 。 使用下面的代码, pill切换工作,它打破了代码的link_to部分,链接不起作用。 “pill” %> 如果我删除”data-toggle” => “pill” ,链接工作正常,并根据需要路由到集合。 我也尝试过使用data: { toggle: “pills” }但这也打破了链接。 有人有任何想法吗?