gpt4 book ai didi

polymer - 我如何使用 :first-child selector w/shadow DOM's element?

转载 作者:行者123 更新时间:2023-12-04 19:06:08 25 4
gpt4 key购买 nike

我想从自定义元素的内容中提取第一段(作为摘要)。我希望以下内容起作用:

<polymer-element name="x-thing" noscript>
<template>
<segment class="summary">
<content select="p:first-child"></content>
</segment>
<segment>
<content></content>
</segment>
</template>
</polymer-element>

不幸的是, <content select="p:first-child">似乎不匹配任何东西:(

Here's a corresponding codepen .

最佳答案

关于polymer - 我如何使用 :first-child selector w/shadow DOM's <content> element?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24070848/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com