样式垂直堆栈(水平)卡。
标题样式:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/c/0/c0dab2516ef83b956e85fc5b65ab3fa05be7e8a2.png)
方法# 1:
类型:“自定义:mod-card”风格:| ha-card {——ha-card-header-color:红色;——ha-card-header-font-size: 10 px;}卡:类型:垂直堆栈标题:改变字体的标题卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
方法# 2:
类型:“自定义:mod-card”风格:hui-vertical-stack-card美元:| .card-header{字体大小:10 px !重要;颜色:红色!重要;}卡:类型:垂直堆栈标题:改变字体的标题卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
彩色的头:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/9/7/97622de722413dec06e8d02433cbe2e1c6ff4428.png)
类型:“自定义:mod-card”风格:hui-vertical-stack-card美元:| .card-header {background:绿色;}卡:类型:垂直堆栈标题:标题卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
彩色的背景:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/4/2/42f3f430cf043ed3b264ba7c813012c9f47969b2.png)
类型:“自定义:mod-card”风格:| ha-card{背景颜色:红色;}卡:类型:垂直堆栈标题:彩色背景卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
使用一个图像的背景:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/3/0/30ef0fec860b2a01831e3dabd572ba4ed9c86a6a.png)
注:
- 的
”——ha-card-background”
变量用于风格子卡。
- 背景图像拉伸以适应名片的大小。
类型:“自定义:mod-card”风格:| ha-card{背景图片:url(/地方/图片/ blue_low_2.jpg);background-size: 100% - 100%;——ha-card-background: rgba(50, 50岁,50岁,0.3);}卡:类型:垂直堆栈标题:图像背景卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
使用一个图像的标题:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/9/7/97d9b4c8e391aceea880cda11514e29417547bb2.png)
类型:“自定义:mod-card”风格:hui-vertical-stack-card美元:| .card-header{背景图片:url(/地方/图片/ blue_low_2.jpg);background-size: 100% - 100%;}卡:类型:垂直堆栈标题:图像背景卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- type: entity entity: sun.sun
更多的垂直叠加样式:
例子# 1:
注意:
”——vertical-stack-card-margin”
变量是用于定义利润为孩子卡片。
类型:“自定义:mod-card”风格:| ha-card{边框样式:固体;边框宽度:5 px;border - radius: 10 px;背景图片:线性渐变(到右,红、橙、黄、绿、蓝、靛、紫);——ha-card-header-color:白色;——ha-card-header-font-size: 40像素;身高:500 px !重要;——vertical-stack-card-margin: 0 px 20 px 190 px 20 px;——ha-card-background: rgba(50, 50岁,50岁,0.3);}卡:类型:垂直堆栈标题:标题卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun - type: entity entity: sun.sun
例子# 2:
类型:“自定义:mod-card”风格:hui-vertical-stack-card美元:| hui-entities-card {——ha-card-background: rgba(50岁,50岁,50岁,0.7);——vertical-stack-card-margin: 0 px 200 px 190 px 20 px;}hui-entity-card {——ha-card-background: rgba(50岁,50岁,50岁,0.1);——vertical-stack-card-margin: 0 px 20 px 0 px 200 px;}:| ha-card{边框样式:固体;边框宽度:5 px;border - radius: 10 px;背景图片:线性渐变(到右,红、橙、黄、绿、蓝、靛、紫);——ha-card-header-color:白色;——ha-card-header-font-size: 40像素; height: 500px !important; } card: type: vertical-stack title: Some title cards: - type: entities entities: - entity: sun.sun - entity: sun.sun - type: entity entity: sun.sun
更多的水平叠加样式:
例子# 1:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/4/e/4efd1189c582f1e2a74cc8b9d18cc850f5a8a773.png)
类型:“自定义:mod-card”风格:hui-horizontal-stack-card美元:| hui-entities-card {margin-left: 10 px !重要;margin-bottom: 10 px !重要;——ha-card-background: rgba(50, 50岁,50岁,0.1);}hui-entity-card {margin-right: 10 px !重要;margin-bottom: 10 px !重要;——ha-card-background: rgba(50, 50岁,50岁,0.7);}:| ha-card {background: lightblue;}卡:类型:水平叠加标题:标题卡:-类型:实体实体:-实体:太阳。太阳-实体:sun.sun- entity: sun.sun - type: entity entity: sun.sun
例子# 2:
![图像](//www.sz-tiancheng.com/community-assets/original/3X/d/6/d6ebb506f55bc98e1d6ad721fd9bdcab2146e78f.png)
类型:“自定义:mod-card”风格:hui-horizontal-stack-card美元:| hui-entities-card {margin-left: 10 px !重要;margin-right: 10 px !重要;margin-bottom: 10 px !重要;宽度:150%;flex:复原!重要;}mini-graph-card {margin-right: 10 px !重要;margin-bottom: 10 px !重要;flex:复原!重要;}:| ha-card {background: lightblue;——ha-card-background: rgba(50, 50岁,50岁,0.1); } card: type: horizontal-stack title: Some title cards: - type: entities entities: - entity: sun.sun - entity: sun.sun - entity: sun.sun - type: 'custom:mini-graph-card' entities: - sensor.cleargrass_1_co2 hours_to_show: 12 points_per_hour: 60 show: name: false icon: false
更多的例子伟德国际官方app下载苹果版描述在这里。