javascript 如何使用 CSS 自定义 Google 日历?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/49306347/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 08:31:53  来源:igfitidea点击:

How to customize Google Calendar with CSS?

javascriptgoogle-apigoogle-calendar-api

提问by Jorge.M

I have a iframewith Google Calendar:

我有一个iframe具有Google Calendar

<iframe name="iframe1" id="iframe1" src="https://calendar.google.com/calendar/embed?height=600&amp;wkst=1&amp;bgcolor=%230c4da1&amp;src=example.com" style="border-width:0" width="800" height="600" frameborder="0" scrolling="no"></iframe>

Doubt:I can customize Google Calendarusing CSS? If not, I can customize otherwise?

疑问:我可以自定义Google Calendar使用CSS? 如果没有,我可以自定义吗?

I would like to change font size, color, etc.

我想更改字体大小、颜色等。

回答by hellojava

Google Calendar exposes its APIs. They are available here and these are the same APIs used to customize the layout for android Calendar app.

Google 日历公开其 API。它们在此处可用,这些 API 与用于自定义 android 日历应用程序布局的 API 相同。

https://developers.google.com/calendar/

https://developers.google.com/calendar/

You can write whatever CSS/layout on top of these APIs

您可以在这些 API 之上编写任何 CSS/布局

Might not be related but there is an opensource repo that can help you in case you are only looking for google calendar events.

可能不相关,但有一个开源存储库可以帮助您,以防您只查找谷歌日历事件。

Check this: http://sugi.github.io/jquery-gcal-flow/

检查这个:http: //sugi.github.io/jquery-gcal-flow/