简体   繁体   English

jQuery UI动态选项卡内容样式不起作用

[英]jQuery UI Dynamic Tab Content Styles Not Working

I set the href of each tab to be "controller/method" so that it will display in the tab. 我将每个选项卡的href设置为“控制器/方法”,以便将其显示在选项卡中。 It really went great for the contents to load in the tab but as I set the styles of the html table (sample content that came from controller/method) and it doesn't work. 内容加载到选项卡上确实很棒,但是当我设置html表的样式(来自控制器/方法的示例内容)时,它不起作用。

Below is the screenshot of the tab loaded via ajax.

在此处输入图片说明

Here is the result if the method is directly access from the URL.

在此处输入图片说明

Question: Why does the table don't appear to be the same when loaded via ajax? 问题:通过ajax加载时,为什么表看起来不一样?

Already solved this problem. 已经解决了这个问题。

I placed the css in the main page thus, making the dynamic content acquire the styles. 我将css放置在主页中,从而使动态内容获得样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM