简体   繁体   English

jQuery-Ui选项卡列表

[英]Jquery-Ui Tab List

Hello guys I'm using jquery-ui tabs. 大家好,我正在使用jquery-ui标签。 I want to change it's text color. 我想更改它的文本颜色。 I know how to do it but the real problem that I'm facing is that each list option has a anchor tab. 我知道该怎么做,但我面临的真正问题是每个列表选项都有一个定位选项卡。 Now due to some reason I gave that anchor tab this property color:#7e8c99 !important; 现在由于某种原因,我给锚标签设置了此属性color:#7e8c99 !important; .

If I remove this important it will disturb my UI so to change the color of the tab list text I did some inline styling and that worked out pretty well but the problem I started facing after it was when I select a tab I want to change the color of the text but I can't do it. 如果删除此重要信息,将会干扰我的UI,因此更改选项卡列表文本的颜色时,我做了一些内联样式设计,效果很好,但是在选择选项卡时我开始面临的问题是我想要更改文字的颜色,但是我做不到。 Can you please tell me what can I do. 你能告诉我该怎么办。

and one thing more I want t vertical small line with the selected option like this screenshot of the image .How can I achieve that 还有一件事,就是我希望t垂直小线具有所选选项,例如图像的屏幕截图。如何实现这一点

try this 尝试这个

var elem = document.getElementById('myElement');
elem.setAttribute('style','color: #fff !important')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM