Abstraction away from CSS

前端 未结 18 2185
别跟我提以往
别跟我提以往 2021-02-13 10:34

Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.

Is there an

18条回答
  •  暖寄归人
    2021-02-13 11:35

    See, this is the problem with SO-- every answer so far has made a valid point and should be considered the final answer. Let me try to sum up:

    • CSS is good! To expand further, there is a learning curve but once you learn it many things will be much easier.
    • (Some) Browser inconsistencies are solvable generically.
    • (Some of your) Variable and calculated field functionality can be taken care of through whatever templating engine you use.

    I think a combination of all these certainly solves a large sum of problems (although to be fair deeply learning CSS is not an option for everyone; some people just don't use it enough to justify the time).

    There are some problems none of the above points cover (certain types of calculated fields would require writing a JS library for, me thinks) but it's certainly a good start.

提交回复
热议问题