Does icalendar support HTML and CSS?

独自空忆成欢 提交于 2019-12-23 03:17:40

问题


I am attempting to create a ICalendar with a html description using the X-ALT-DESC;FMTTYPE=text/html: but it does not appear to support inline CSS for layout/styling is there anyway of making CSS work within an icalendar?


回答1:


RFC 5545 (the iCalendar specification) allows you to use HTML, but that's a different thing from the calendar clients supporting it. I suspect that you'll find it rare that any of the non-browser-based calendars will do so.




回答2:


As opposed to what jgm implied, the RFC5545 does not have provisions for html.

The only back-door is via the ALTREP parameter (see RFC for more details)

However this implicitly refers to icalendar invitation sent by emails (as it is most often using the CID URI), but other URI like HTTP(S) could also be used though less often so.

Also you should be aware that RFC5545 compliance is far from complete even from the most prominent calendars (google calendars for instance only aims at RFC2445 (which was obsoleted by RFC5545),...)

Also the X-ALT-DESC is a MSFT specific extension (see MSND on iCalendar/X-ALT-DESC) which.

So coming back to your question, which calendars do you want to support your .ics file and be able to render in?




回答3:


hcalendar converts to icalendar; hcalendar is a microformats icalendar implementation. check out more http://microformats.org/wiki/hcalendar



来源:https://stackoverflow.com/questions/14956048/does-icalendar-support-html-and-css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!