acthtml
V2EX  ›  Google

polymer 中将布局样式当成属性来使用,是否有点 css 的倒退,你怎么看?

  •  
  •   acthtml · Feb 26, 2015 · 2575 views
    This topic created in 4118 days ago, the information mentioned may be changed or developed.
    https://www.polymer-project.org/docs/polymer/layout-attrs.html

    <paper horizontal layout></paper>

    例如这样实现元素的水平居中布局。岂不是逻辑内容跟样式耦合了?为什么这样做啊,求高人指点。
    1 replies    2015-02-26 17:31:15 +08:00
    sumhat
        1
    sumhat  
       Feb 26, 2015 via Android   ❤️ 1
    本来就做不到完美的分离,Polymer 只是一种新的尝试。Google 的页面都是由设计师设计好,再交给程序员实现,不存在一个页面用不同的 CSS 就有不同的效果,这样用户体验不可控。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2743 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
    ♥ Do have faith in what you're doing.