如何将CSS样式应用于一行HTML插入的HTML元素?
一个具体示例:我正在使用Waitlisted插入将用户添加到候补列表的电子邮件表单。该链接文档中的示例代码为:
<script src="dist/index-with-deps.min.js"></script>
<waitlisted-total domain="waitlisted.app.waitlisted.dev"></waitlisted-total>
<waitlisted-show>
<waitlisted-error></waitlisted-error>
<waitlisted-form domain="waitlisted.app.waitlisted.dev"></waitlisted-form>
</waitlisted-show>
<waitlisted-show submitted>
<waitlisted-reflink>
Link to share!
</waitlisted-reflink>
<waitlisted-refurl></waitlisted-refurl>
<waitlisted-refurl as="input"></waitlisted-refurl>
<waitlisted-position></waitlisted-position> of <waitlisted-total></waitlisted-total>
</waitlisted-show>
据我了解,Javascript的第一行注入HTML。但是,当我尝试将CSS应用于这些HTML元素时,它似乎不起作用。