Materializecss选项卡(Materializecss tabs)

编程入门 行业动态 更新时间:2024-10-25 19:24:48
Materializecss选项卡(Materializecss tabs)

我使用materializecss 。 我有两个问题。 第一:如何用“主动”类标记标签(就像点击了一样)? 如果我打开标签页(下一个“活动”标签页后面),我没有看到该标签页(包裹在其中)在这一刻打开。 (我使用两行制表符)第二:如何标记制表符的文本(好像被徘徊在两行中)预先感谢您的帮助。

I use materializecss. I have two questions. First: How to mark tab (as if was clicked) with "active" class? If I open tab (next after "active" tab), I don't see, that tab (among wrapped) open in this moment. (I use two rows of tabs) Second: How to mark text of tab (as if was hovered, in two rows) Thank you in advance for help.

最满意答案

请查看文档: http : //materializecss.com/tabs.html

你可以使用回调函数onShow所以当显示一个Tab时,你可以做任何你想要的东西^^

您的选项卡触发器(也许是您的a-tag)会在激活时自动获取“主动”类

Please have a look in the documentation: http://materializecss.com/tabs.html

You can use the callback-Function onShow So when a Tab is shown you can do whatever you want ^^

Your Tab-Trigger (maybe your a-tag) gets the "active" class automatically, when activated

更多推荐

本文发布于:2023-07-20 12:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1199640.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   Materializecss   tabs

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!