我最近开始使用angular2-cli并创建了一个新项目.我想在我的项目中使用bootstrap,因此我安装了bootstrap然后想要导入bootstrap css文件,就像它在angular2-cli指南中所示.https://github.com/angular/angular-cli#global-library-installation 运行ng服务后,我收到以下错误.
多样式中的错误找不到模块:错误:无法解析'/ home/krishna/angular2_migrate/webui/node_modules中的'/home/krishna/angular2_migrate/webui/node_modules/bootstrap/dist/css/bootstrap.min.css'/angular-cli/models'@多种风格
我究竟做错了什么 ?
有关angular2-cli版本的信息
krishna@Krishna:~/angular2_migrate/webui$ ng version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.17
node: 4.4.3
os: linux x64
Run Code Online (Sandbox Code Playgroud) 我正在尝试调整列标题的字体大小,也可能是内容。我尝试根据Primeng这里提到的结构类做一个纯css解决方案,但没有成功。 https://www.primefaces.org/primeng/#/datatable https://www.primefaces.org/primeng/#/theming
我查看了其他 stackoverflow,但发现这种方式是公认的答案。
<p-column field="type" header="Type"
[style]="{'text-align': 'center', 'font-size': '0.8em'}"></p-column>
Run Code Online (Sandbox Code Playgroud)
是否有纯 css 方法来使用纯 css 解决方案修改 primeng 数据表和其他组件的字体大小。
值得一提的是,我并不是一个真正的 UI/UX 人。因此,如果有人已经解决了这个问题,我将不胜感激。多谢。