Kon*_*ten 2 css sass twitter-bootstrap bootstrap-4 angular
我已经使用以下命令安装了Ngb和Bootstrap 4。当然,根模块也会导入包。
npm install @ng-bootstrap/ng-bootstrap --save
npm install bootstrap@next --save
在代码中,我试图添加以下指令。然而,唯一呈现的是一个关闭十字按钮和我输入的文本,但只是无聊 - 没有边框、框、颜色等。
<ngb-alert type="info">dsdsdds</ngb-alert>
Run Code Online (Sandbox Code Playgroud)
不确定如何进一步排除故障,因为 googlearching 没有产生任何影响。建议?
The misleading part on the website for NgBootstrap's site is that they only have focused on the framework of directives, leaving out the styling all together to the developers.
So, basically put, it appears that the CSS and/or SCSS are still supposed to be provided by the coder. The solution is to design the styles by oneself or, which is the immensely wiser and undoubtedly quicker, to snatch them from the public distribution of Bootstrap using the following statement.
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" />
Run Code Online (Sandbox Code Playgroud)