我试图让container-fluid第二个row伸展到剩余的高度,但我找不到办法做到这一点.
我已经尝试设置align-items/align-self到stretch,但也不能工作.
以下是我的代码结构:
<div class="container-fluid"> <!-- I want this container to stretch to the height of the parent -->
<div class="row">
<div class="col">
<h5>Header</h5>
</div>
</div>
<div class="row"> <!-- I want this row height to filled the remaining height -->
<widgets [widgets]="widgets" class="hing"></widgets>
<div class="col portlet-container portlet-dropzone"> <!-- if row is not the right to stretch the remaining height, this column also fine -->
<template row-host></template>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我正在使用Bootstrap 4 …
基本上我正在尝试BehaviorSubject<[]>使用将以块的形式加载的数据数组进行充气.
BehaviorSubject<[]>将添加新的数据块(如Array.push),但我不想使用另一个数组来存储和添加,BehaviorSubject.next因为这将导致渲染花费太长时间随着数据的增长而增长.
有什么建议吗?
在rxjs 5.1中处理同一DOM节点上的多个事件的最佳方法是什么?
fromEvent($element, 'event_name') 但我一次只能指定一个事件.
我想处理scroll wheel touchmove touchend事件.
我有字符串说"dd month yyyy",我希望拆分转换为数组,如["dd","","month","","yyyy"].
到目前为止我所拥有的这种方法是有效的.但是,如果有人可以提供帮助,我正在寻找Reg表达吗?
function toArray(format) {
var vDateStr = '';
var vComponantStr = '';
var vCurrChar = '';
var vSeparators = new RegExp('[\/\\ -.,\'":]');
var vDateFormatArray = new Array();
for (var i=0; i < pFormatStr.length; i++ )
{
vCurrChar = pFormatStr.charAt(i);
if ( (vCurrChar.match(vSeparators) ) || (i + 1 == pFormatStr.length) ) // separator or end of string
{
if ( (i + 1 == pFormatStr.length) && ( !(vCurrChar.match(vSeparators) ) ) ) // at end of string add any …Run Code Online (Sandbox Code Playgroud)