我可以CSS样式HTML 5 Object标签的内容吗?

时间:2016-09-02 20:29:31

标签: jquery object calendar

例如,我正在尝试设置我想要嵌入我网站的Google日历。我使用以下Object标记来绕过默认的iFrame:

<object data="https://calendar.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;ctz=America%2FNew_York" style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no">
    <embed src="https://calendar.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;ctz=America%2FNew_York" style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"> </embed>
    Error: Embedded data could not be displayed.
</object> 

我已经厌倦了对Google日历样式的研究以及围绕php的所有想法,jQuery似乎没什么帮助。

我想我是否可以在我的网站上获取日历代码,然后在我的html页面末尾使用jQuery,如下所示:

<script type="text/javascript">
$(document).ready(function() {
        $("object .st-bg-today").css({"background":"red"});
});

然后造型可能会产生影响,但我认为我的理论存在缺陷。

任何帮助将不胜感激,谢谢。

0 个答案:

没有答案
相关问题