小编Shr*_*wal的帖子

在css中使用target ="_ blank"

我的网站顶部菜单中有外部链接.我想在新标签中打开这些链接.我可以在HTML中使用"target = _blank"来实现它.是否有类似的CSS属性或其他任何东西?

css css3

55
推荐指数
4
解决办法
12万
查看次数

响应式设计使用角度2中的md-grid-list

我正在研究Angular 2md-grid-list的基本示例.

HTML代码:

<md-grid-list cols="4" rowHeight="100px">
   <md-grid-tile *ngFor="let tile of tiles"
         [colspan]="tile.cols"
         [rowspan]="tile.rows"
         [style.background]="tile.color">
         {{tile.text}}
    </md-grid-tile>
</md-grid-list>
Run Code Online (Sandbox Code Playgroud)

TS代码:

export class GridListDynamicExample {
  tiles = [
    {text: 'One', cols: 3, rows: 1, color: 'lightblue'},
    {text: 'Two', cols: 1, rows: 2, color: 'lightgreen'},
    {text: 'Three', cols: 1, rows: 1, color: 'lightpink'},
    {text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'},
  ];
}
Run Code Online (Sandbox Code Playgroud)

上面的代码导致了这个: 在此输入图像描述 如何使用某些HTML指令或CSS将布局设置为"列""列",以便在较小屏幕尺寸下的行(一和四)下方?

Angular 1中的Angular Material可以选择通过指定"md-cols-xs ="1"md-cols-sm ="2"md-cols-md ="4"md-cols-gt-md ="6" ".

css responsive-design angular-material2 angular

13
推荐指数
2
解决办法
1万
查看次数

如何使用PowerShell和Web管理模块检查IIS中是否存在应用程序池?

我使用PowerShell自动配置IIS中的网站.我有以下代码为我创建一个Web应用程序池

#Creating a new Application Pool
New-WebAppPool "NewAppPool"
Run Code Online (Sandbox Code Playgroud)

但是在创建池之前,我想检查池是否存在.我该怎么做呢?

请注意:我的系统上没有IIS驱动器.因此,如下所示在路径中提到IIS的命令会失败:

$IISPath = "IIS:\AppPools"
cd $IISPath
if (Test-Path ".\NewAppPool") { Write-Host "NewAppPool exists." }
Run Code Online (Sandbox Code Playgroud)

iis powershell application-pool web-administration

10
推荐指数
1
解决办法
8833
查看次数