从CSS工作表中的#shadow-root更改元素的样式角度/离子代码

问题描述

<ion-segment-button _ngcontent-rao-c6="" class="seg-btn md segment-button-has-label segment-button-has-label-only segment-button-layout-icon-top ion-activatable ion-activatable-instant hydrated segment-button-checked" mode="md" style="--indicator-color-checked: #ff3366;--margin:0px 20px;" value="glucose" ng-reflect-mode="md" ng-reflect-value="glucose">
           
          #shadow-root(open)
             <button type="button" class="button-native" aria-pressed="true"><slot></slot><ion-ripple- 
                effect role="presentation" class="ios hydrated"></ion-ripple-effect></button>
             <div class="segment-button-indicator"></div>

   <ion-label _ngcontent-rao-c6="" class="detailsGroupName sc-ion-label-ios-h sc-ion-label-ios-s ios 
   hydrated">
       Glucose
   </ion-label>
      
</ion-segment-button>

我正在尝试设置CSS样式表中#shadow-root内部的

”的样式,其属性为{width:30px,self-align:center}。 / p>

我必须使用哪个选择器才能在CSS表单中访问它并设置其样式?

0 个答案:

没有答案

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...