Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问这个问题我觉得很傻,但是我在http://www.wcarsucks.com上做错了什么?我完全按照他们的榜样,没有骰子。
我假设您正在使用此演示,看起来您只需要设置标签的样式,并在页面中包含所需的 css 样式。
<style> .ui-tabs .ui-tabs-hide { display: none; } </style>
除此之外,如果您使用FireBug之类的东西并检查您的页面,您会发现它似乎正在工作并将正确的 css 类应用于元素。
似乎您的问题是未加载 jQuery UI 的样式表。如果您在页面加载后检查 DOM 元素,您会看到选项卡界面所需的所有类都已添加。