Home
Sign Up
Sign In
›
Google Play
›
Google Fi
›
Google Developers Channel
›
Google 全球透明度报告
›
9to5Google
V2EX
›
Google
polymer 中将布局样式当成属性来使用,是否有点 css 的倒退,你怎么看?
acthtml
·
Feb 26, 2015
· 2859 views
This topic created in 4283 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
Feb 26, 2015 via Android
1
1
本来就做不到完美的分离,Polymer 只是一种新的尝试。Google 的页面都是由设计师设计好,再交给程序员实现,不存在一个页面用不同的 CSS 就有不同的效果,这样用户体验不可控。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
3461 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 68ms ·
UTC 10:07
·
PVG 18:07
·
LAX 02:07
·
JFK 05:07
♥ Do have faith in what you're doing.
❯