热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何编辑生成的jQueryUI选项卡的html?-HowtoedittheresultinghtmlofjQueryUItabs?

IhavesometabsusingjQueryUIwhichworkjustfine,butIwanttoedittheresultinghtmltoadd

I have some tabs using jQuery UI which work just fine, but I want to edit the resulting html to add some stuff on/around it, more precisely I would like to add a left panel and some icons at the right side of the header.

我有一些使用jQuery UI的选项卡工作得很好,但我想编辑生成的html来添加一些东西在它周围,更确切地说我想在标题的右侧添加一个左面板和一些图标。

Trying to give you a schema, here is what I have:

试着给你一个架构,这就是我所拥有的:

tab1|tab2|tab3
content content content content content content
content content content content content content
content content content content content content

And here is what I would like:

这就是我想要的:

panel | tab1|tab2|tab3 ( empty space ) jquery_ui_icon
panel | content content content content content content
panel | content content content content content content
panel | content content content content content content

Panel would be a div containing whatever html I want

Panel将是一个div,包含我想要的任何html

Is this possible, and if yes can any of you give me a hint as to how I could do that ?

这是可能的吗?如果是的话,你们中的任何一个人都可以给我一个关于如何做到这一点的暗示吗?

Thanks a lot

非常感谢

2 个解决方案

#1


Your tabs are created in a div that you have defined in html. You should put your pane1 in another div before that tab div and let the two divs float next to each other.

您的选项卡是在您在html中定义的div中创建的。你应该把你的pane1放在那个tab div之前的另一个div中,让两个div互相浮动。

Hope this helps.

希望这可以帮助。

#2


I'm not sure how to do it exactly, but somewhere in the js there will be the html that is generated. Just look for the neccessary methods like append()',prepend()or $('

');, etc.

我不确定如何做到这一点,但在js的某个地方会有生成的html。只需查看必要的方法,如append()',prepend()或$('

');等。


推荐阅读
author-avatar
求所以
这个家伙很懒,什么也没留下!
Tags | 热门标签
RankList | 热门文章
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有