Is there an alternative to CSS?

后端 未结 21 1989
忘掉有多难
忘掉有多难 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:32

    No (mostly)

    If you want to create layouts that work in the maximum number of client machines then you'll have to learn CSS.

    If you can limit your users to IE8, Chrome, Safari and Firefox then you can probably get away with CSS2, otherwise you're going to have to learn all the differences with CSS1, along with the myriad broken things - especially in IE5 and 6.

    HTML 3.2 includes some formatting tags (such as or

    ) but you can't do much with them.

    Why only mostly? - If you can assume that users have either Flash or Silverlight and build web applications for them. Then your layout will be perfect, but it'll need a client side plugin (which not everyone has) in order to work. I'd only go down that route if you need really rich client UI.

提交回复
热议问题