Well, I think that style element with the src attribute in order to link an external stylesheet works only in XHTML2. Definitely it does not work when html5 doctype is applied and the current welcome app layout is in html5. I will open an issue, asking to correct the example in the book.
Il giorno lunedì 7 aprile 2014 02:03:53 UTC+2, scruffy...@gmail.com ha scritto: > > Hi, > > I'm learning web2py and just messing around... > > I have a static file: css/style.css > > It contains: h1 {color: red;} > > When I make a simple view with an h1 block, my stylesheet gets applied if > I put: > {{=LINK(_rel="stylesheet", _type="text/css", _href=URL('static', > 'css/style.css'))}} in my <head>, but not if I put: > {{=STYLE(_src=URL('static', 'css/style.css'))}} which is similar to the > example given for the STYLE helper in chapter 5 of the web2py manual. > What am I missing? > > Thanks, > Scruffy > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.