Jquery.easyui.tabs the first tabs to be covered by the last tabs problem solving method

Source: Internet
Author: User

This is due to the tabs of the href overload, so we need to change the href to a different custom property to avoid this problem.

Here's how to fix it:

First step page End:

Start of the loop body

<li>
<div><a target= "Tagframe" href= "@n.url" ><span class= "icon Icon-sys" >&nbsp;</span>@n. Title</a></div>
</li>

End of Loop body

----

Change href= "@n.url" to: ghref= "@n.url"

After the change:

Start of the loop body

<li>
<div><a target= "Tagframe" ghref= "@n.url" ><span class= "icon Icon-sys" >&nbsp;</span>@n. Title</a></div>
</li>

End of Loop body

The second step JS end:

function Initleftmenu () {
$ ('. Easyui-accordion li a '). Click (function () {
var Tabtitle = $ (this). text ();
var url = $ (this). attr ("href");
AddTab (Tabtitle,url);
$ ('. Easyui-accordion Li Div '). Removeclass ("selected");
$ (this). Parent (). AddClass ("selected");
}). Hover (function () {
$ (this). Parent (). addclass ("hover");
},function () {
$ (this). Parent (). Removeclass ("hover");
});
}

Look at the red part: the var url = $ (this). attr ("href"); Change to:var url = $ (this). attr ("Ghref");

With the students, refresh the test! Please leave a message if you don't understand.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.