标签问题 [英] Tabs problem

查看:62
本文介绍了标签问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我使用javascript和CSS创建了标签页.我使用DIV分隔了制表符.假设我有三个选项卡A,B,C.每当我在选项卡B上工作并且刷新页面时,它都将焦点放在选项卡A上,而应该将其放在B上.对于此问题的任何帮助

Dear All,
I created tabs using javascript and CSS. i separated tabs using DIV. suppose i have three tabs A,B,C. whenever i work on Tab B and it page is refreshed then it is focusing on tab A while it should be on B. any help for this problem

推荐答案

在回发中保留选项卡索引.如果您使用的是javascript,则也许可以使用cookie来这样做.
You need to persist the tab index across postbacks. If you''re using javascript then perhaps you could use a cookie to do so.


如果您不能确保已启用cookie,请使用该会话,但必须遵循相同的理论状态.
If you can not assure that cookies are enabled use the session but the same theory applies you have to preserve the state somehow.


这篇关于标签问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆