草庐IT

mat-vertical-stepper

全部标签

html - 如何使用 px 回退使 Compass Vertical Rhythm 输出 Rems 而不是 Ems?

我想这样做:http://www.youtube.com/watch?v=ls3Clk-kz3s但输出rems(使用px回退)而不是ems。显然是这个https://github.com/chriseppstein/compass/pull/896已添加到compass并且应该可以正常工作,但我不太了解我需要什么http://compass-style.org/reference/compass/typography/vertical_rhythm/添加到我的.scss文件中。如果我只是从https://gist.github.com/ry5n/2026666中获取代码作为混合(即使根

html - Angular Material : How to change top padding of mat-grid-tile

我正在使用angular-materialAngular为5.mat-grid-tile有它自己的顶部填充,使用calc方法计算。我想在mat-grid-tile上设置自定义填充。我该怎么做? 最佳答案 网格图block组件会在元素本身上动态设置顶部内边距,因此您需要在CSS中使用!important修饰符来覆盖它。HTML:CSS:.my-grid-tile{padding-top:24px!important;} 关于html-AngularMaterial:Howtochanget

html - TD :before and vertical-align:middle

我使用这种结构来获取带有方形单元格的表格:table{width:100%;table-layout:fixed;}td{text-align:center;vertical-align:middle;}td:before{content:'';padding-top:100%;float:left;}但是垂直对齐不适用于单元格的内容。我该如何解决?html是:123456789http://jsfiddle.net/FU84y/1/ 最佳答案 替换float:left;与display:inline-block;vertical-

html - Bootstrap : how to add vertical offset in columns?

Bootstrap提供了一个类col-sm-offset-*来在列之间添加空格。它在笔记本电脑屏幕上运行良好,但当我们将屏幕分辨率更改为移动设备时,它会显示一个下一个没有空格的列。bootstrap库中是否有任何类可以使用我们达到预期的结果。Referfiddle当前输出,预期结果, 最佳答案 您可以向特定的div添加额外的类(任何名称)并使用给定的css。.custom{margin-bottom:10px;}col-1col-2col-3col-4 关于html-Bootstrap:

html - 组合显示 :inline-block with clear:both not vertically stacking divs

我有一些如下所示的HTML:thisissometextinline-blockwithclearthisissomeothertextinline-blockbutnotclearingCSS看起来像这样:.TheContainer{margin:20px20px;background:red;}.TheData{display:inline-block;clear:both;background:yellow;padding:5px5px;margin:10px10px;}我正在使用inline-block以便TheDatadiv很好地环绕它们的内容,而不是扩展TheContain

html - 为什么 `position:absolute;` 销毁 ` vertical-align:middle` ?

文本center位于div的中心,如下面的代码所示。.Absolute-Center{display:table-cell;width:100px;height:100px;border:1pxsolidred;text-align:center;vertical-align:middle;}center现在在.Absolute-Center的css中添加一行position:absolute;。.Absolute-Center{position:absolute;display:table-cell;width:100px;height:100px;border:1pxsolidre

html - '溢出-x : scroll' inside a fixed div prevents vertical scrolling on ios

似乎如果你有一个带水平滚动的div,在一个定位固定的div内,它会阻止IOS上的垂直滚动。I.E-如果我通过将手指放在水平滚动的div上开始滚动,然后尝试垂直滚动,什么也没有发生。在我同事的Andriod设备上似乎没问题。我已经创建了一个测试用例,在这里演示了这个问题:http://jsbin.com/jikatugeli/这是htmlJSBinsomecontentunderneathI'msomeothercontenthihihihihihihihihihihihellothere,Iamsometexttomakethingsscrollable这是CSSp{font-size

html - 在 angular7 中,如何在显示元素列表时更改 mat-select 的高度?

这个问题在这里已经有了答案:Stylingmat-selectinAngularMaterial(10个答案)关闭5个月前。在Angular7中,如何在显示元素时增加mat-select的高度?我有以下组件文件:import{Component,ViewEncapsulation}from"@angular/core";import{FormControl}from"@angular/forms";/**@titleSelectwithmultipleselection*/@Component({selector:"select-multiple-example",templateUr

html - Bootstrap : How to center content vertically within a column

我现在已经在这个问题上花了几个小时,并且已经阅读了无数的问题,但是所提供的解决方案都不适合我,所以我现在只发布我的具体问题:我想构建一个包含四列的行。前三列有图片,第四列有我想垂直居中显示的文字说明(意思是顶部和底部的边距相等,显然不是固定的,但会响应屏幕尺寸的变化)。这是代码:Sometextthatissupposedtobeverticallycenteredwithinthecolumn它必须对Bootstrap特定类做一些事情,而我在这方面可以找到的非基于CSS的解决方案都有效。我怎样才能让它在这个特定的例子中工作?随意对这部分进行任何更改:Sometextthatissup

html - Mat-icon 不在其 div 中心

我是css的新手,我无法将mat-icon(思想泡泡)与divclass=img(左侧的绿色方block)对齐-请参阅附图。此时图标有点靠近顶部为了添加svg图标,我使用了MaterialAngular-MatIconRegistry类(不知道它是否重要)我的结果:这是我的html:Sometexthere!这是我的CSS:$conainer-min-width:256px!default;$conainer-max-width:512px!default;$conainer-height:50px!default;div.container{max-width:$container-