开发者

Are there any other style types besides CSS for HTML?

<style type="text/css">..</sty开发者_运维问答le>

From the above HTML, I think there should be, but I've never seen it, is there?


Netscape 4 (only) supported Javascript Style Sheets.


As of HTML5, you don't need to supply a type any more, since there are no other relevant style types. The same goes for script.


As far as I know, not in HTML, but XML (and consequently XHTML) support XSL stylesheets using XML style sheet definitions:

<?xml-stylesheet type="text/xsl" href="foo.xsl" title="XSL Rules"?>

It's worth mentioning because the same PI will allow you to attach CSS style sheets to XML documents as well.


There are lots, but CSS is pretty much it as far as browser support goes.


The way less is added to a web page makes it look as if it were a separate kind of style sheet.

<link rel="stylesheet/less" type="text/css" href="styles.less" />

Of course it is just Javascript making a css on the fly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜