我在影子根中有一些<p>
标记,它们是内联代码。当我尝试为每个设置样式时,如 display:block 。它失败了。如何设置一个项目低于其他项目?谢谢。
这是我用过的代码:
polyfill-next-selector{content: '.card-header #phone';}
.card-header ::content #phone
{
display:block;
font-size: 0.7rem;
}
polyfill-next-selector{content: '.card-header #building';}
.card-header ::content #building
{
display:block;
font-size: 0.7rem;
}
polyfill-next-selector{content: '.card-header #office';}
.card-header ::content #office
{
display:block;
font-size: 0.7rem;
}
polyfill-next-selector{content: '.card-header #skype';}
.card-header ::content #skype
{
display:block;
font-size: 0.7rem;
}
polyfill-next-selector{content: '.card-header #computerName';}
.card-header ::content #computerName
{
display:block;
font-size: 0.7rem;
}
polyfill-next-selector{content: '.card-header #businessMobile';}
.card-header ::content #businessMobile
{
display:block;
font-size: 0.7rem;
}
</style>
<div class="card-header" layout horizontal center>
<content select="img"></content>
<content select="h2"></content>
<content select="#phone"></content>
<content select="#building"></content>
<content select="#office" ></content>
<content select="#skype" ></content>
<content select="#computerName" ></content>
<content select="#businessMobile" ></content>
</div>
<content></content>