这是我的HTML代码片段:
<mat-card-content>
<div fxLayout="row" fxFlex="1 0 0">
<div fxLayout="column">First</div>
<div fxLayout="column" style="margin-left:auto">Second</div>
</div>
</mat-card-content>
Run Code Online (Sandbox Code Playgroud)
和CSS:
.mat-card-content {
color: rgba(0, 0, 0, 0.700);
}
Run Code Online (Sandbox Code Playgroud)
我需要在角度材料卡元素内实现柔性布局,以便两列能够响应并包含一些文本,如杂志中的内容:
现在我已经完成了 mat-card-header 并且它工作正常。任何建议将不胜感激。
该函数获取一串数字(例如"23559009")和子串值的长度(例如2),我需要实现该函数,以便它将数字串切成值(例如"23","35" ",""55","59","90","00","09")AND将此数据作为数组返回.
现在我有测试的初始代码:
using System;
public static class Series
{
public static string[] Slices(string numbers, int sliceLength)
{
int digits = numbers.Length;
if(digits != null || digits > sliceLength || sliceLength < 1)
throw new ArgumentException();
else
{
string[] dgts = {"1", "2"};
return dgts;
}
}
}
Run Code Online (Sandbox Code Playgroud) 我需要创建一个带有2个简单行的页脚,分别是公司名称和年份。这是我的html片段,
<mat-toolbar color="primary" style="height: 176px">
<span>Company name</span>
<span>Copyright ©2019</span>
</mat-toolbar>
Run Code Online (Sandbox Code Playgroud)
因此,公司名称必须位于中心(垂直和水平),并且版权应低于公司名称。