【发布时间】:2022-09-28 07:50:54
【问题描述】:
我正在使用 \"@angular/cli\": \"~13.3.0\", \"primeflex\": \"^3.1.3\",
我已经完成了安装
npm install primeflex --save
然后添加到 angular.json 文件中
\"node_modules/primeflex/primeflex.css\"
我的HTML如下:
<div class=\"card\">
<div class=\"card-container yellow-container overflow-hidden\">
<div class=\"flex\">
<div class=\"flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Prime</div>
<div class=\"flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Prime and PrimeFlex</div>
<div class=\"flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Lorem ipsum dolor sit amet</div>
</div>
<div class=\"flex\">
<div class=\"flex-1 flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Prime</div>
<div class=\"flex-1 flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Prime and PrimeFlex</div>
<div class=\"flex-1 flex align-items-center justify-content-center bg-yellow-500 font-bold text-gray-900 m-2 px-5 py-3 border-round\">Lorem ipsum dolor sit amet</div>
</div>
</div>
</div>
div 正确对齐,但没有颜色和样式,如下所示:
知道会是什么问题吗?
标签: angular angular13 primeflex