Is there an alternative to CSS?

后端 未结 21 2003
忘掉有多难
忘掉有多难 2021-01-30 02:26

Is there a style sheet formatting language alternative to CSS? Or is CSS the current single language for doing Style Sheet formatting type things?

I looked at the wr

相关标签:
21条回答
  • 2021-01-30 02:43

    became discouraged about the lack of full support for CSS in the different Layout engines

    I think jQuery has some ways to make css more compatible across-browsers, i.e. if you specify some attributes using jQuery then it will try to make sure to use a work-around for browsers that don't support certain features.

    There's also a project called CleverCSS, you might want to check it out. It's not an alternative to it though, just a slightly different way to define it.

    0 讨论(0)
  • 2021-01-30 02:44

    Only one, as far as I know. At least for HTML and such.

    See also http://www.w3.org/Style/CSS/

    0 讨论(0)
  • 2021-01-30 02:45

    The only alternative is the deprecated formatting support that HTML itself has, like the <font> tag. But you don't want to do that. 8-)

    0 讨论(0)
  • 2021-01-30 02:46

    List of stylesheet languages: http://en.wikipedia.org/wiki/List_of_stylesheet_languages

    0 讨论(0)
  • 2021-01-30 02:47

    I looked at the write up of CSS on Wikipedia (http://en.wikipedia.org/wiki/Cascading_Style_Sheets) and a few other comments about CSS and became discouraged about the lack of full support for CSS in the different Layout engines, so I am just curious if there is an alternative or I must learn to also use CSS filters.

    CSS is the standard. There is no alternative.

    All browsers support the basic CSS features. Each new version of each of the (four?) main browser lines comes with increased support for the standard, but websites that use these features will be broken to any users in an earlier version. There are two answers to this:

    1. "Graceful degredation" (or its twin, "Progressive enhancement" - google it), in which the page takes advantage of advanced features if they're available, while still continuing to work if they're not.

    2. Who are your audience? If you're lucky enough to know that 99.8% of visitors to your website will be using at least IE7, then you don't need to worry about the CSS features that are broken in IE6. This will depend on your own business though, so check the facts first.

    The worst thing you can do is code to the quirks of a single specific browser, because that leads to a page that's broken not only on other browsers, but even on later versions of the same browser.

    0 讨论(0)
  • 2021-01-30 02:47

    Nope, CSS is the way to go now. There's nothing wrong with the format itself (I personally quite like it actually), but rather only the browser support for it - especially regarding IE. Once we have all major browsers supporting CSS3, things should be fine - though I'm not too optimistic over when that will happen.

    0 讨论(0)
提交回复
热议问题