The problem of tabs use of jquery Easyui _jquery

Source: Internet
Author: User
Everyone can also jquery EasyuiTo download, or to official websiteDownload and view document help.

I've also recently used the jquery Easyui tabs, but I found a problem: If you set the tabs div to Display:none, then write a function change () {$ ("#tabs"). CSS ("Display "," block "} to let tabs display, when the change () is performed, the results tabs appear to be abnormal.

Should have been displayed as:

The results appear as follows:

Then I kept trying to find out if tabs was initially display:block, then in $ (document). Ready (function () {$ ("#tabs"). CSS ("display": "None")}) is set to Tabs is set to none after the page has been loaded, and then it is normal to display it by clicking the button change.

I thought a bug in this jquery Easyui, so I sent an email to the author of jquery Easyui and told me about my situation. The next day he replied that jquery easyui tabs no problem, saying that I should write $ ("#tabs") in the Change () method. CSS ("Display", "Block"). Tabs (' resize ');

I tried, and sure enough. You just need to add. Tabs (' resize ') to reset the tabs size.

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.