Python dominator 单选和标签

发布于 2025-01-10 15:14:40 字数 377 浏览 2 评论 0原文

如何在我的文档宽度支配器(python 库)中添加下面的 html 部分。 或者更确切地说,我在哪里可以找到示例。 dominator 文档 在这里对我没有帮助。 我可以创建一个字符串并将其添加到文档中吗?

<input name="tabs" id="tab1" checked="checked" type="radio">
<label for="tab1">

How do I add the html section below, in my document width dominator (python library).
Or rather where can I find examples.The dominator documentation doesn't help me here.
I can create a string and add this in the document?

<input name="tabs" id="tab1" checked="checked" type="radio">
<label for="tab1">

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空城缀染半城烟沙 2025-01-17 15:14:40

经过三天的努力我找到了答案。

with div(cls='tabs',id='tab1',checked='checked', type='radio'): 
      with label(fr ="tab1"):
           span(cls="material-icons").add('Shield')
           text('your tekst')

编辑:抱歉不清楚。查找所有正确标签的最佳指南https://github.com/Knio/dominate/blob/master/dominate/tags.py
对于那些想知道的人。 ;)

After 3 day's struggling I found the answer.

with div(cls='tabs',id='tab1',checked='checked', type='radio'): 
      with label(fr ="tab1"):
           span(cls="material-icons").add('Shield')
           text('your tekst')

Edit: Sorry for being unclear. Best guide for finding all the correct tags https://github.com/Knio/dominate/blob/master/dominate/tags.py
For the ones who want's to know. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文