Questions about jquery easyui tabs usage

Source: Internet
Author: User

I believe many people have used jquery easyui, which is very easy to use and has a beautiful interface. You don't need to spend too much time on the interface, and the example program is also quite complete, the easyui is easy to use. You can also search for jquery easyui In the open-source Chinese community to download it, or go to the official website to download and view the help documentation.

 

I recently used tabs in jquery easyui, but I found a problem: If you set the div of tabs to display: none, then write a function change () {$ ("# tabs" ).css ("display", "block")} to display tabs. When change () is executed, the result tabs is not displayed normally.

It should have been shown:

The result is displayed as follows:

Later, I kept trying to find that if tabs was originally set to display: block and then at $ (document ). ready (function () {$ ("# tabs" ).css ("display": "none")}) is set to, and tabs is set to none after the page is loaded, then click change to display it.

I thought this was a bug in jquery easyui, so I sent an email to the author of jquery easyui about my situation. The next day, he replied that jquery easyui's tabs is okay, saying that I should write $ ("# tabs" ).css ("display ", "block "). tabs ('resize ');

I tried it. You just need to add. tabs ('resize') to reset the size of tabs.

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.