TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

CSS Grid changes everything [video]

280 点作者 mladen5超过 7 年前

15 条评论

munificent超过 7 年前
I giggle a little bit inside when web designers say &quot;We shouldn&#x27;t use meaningless tags that exist only for layout. We should use semantic ones, like &lt;header&gt; and &lt;footer&gt;!&quot;. Except that, uh, &quot;header&quot; and &quot;footer&quot; <i>themselves</i> are layout terms. They&#x27;re just a metaphor for a document as a body (&quot;&lt;body&gt;&quot;) with the head at the top and the feet at the bottom. It&#x27;s not like the contents of a &lt;footer&gt; tag have anything to do with feet. We call it &quot;semantic&quot; simply because the metaphor is old enough that we&#x27;ve internalized it and no longer see it.<p>Not that I think this detracts from the talk at all. Fewer, cleaner tags is good, regardless of how they&#x27;re spelled.
评论 #16292654 未加载
评论 #16292245 未加载
评论 #16293508 未加载
评论 #16293337 未加载
评论 #16292475 未加载
评论 #16296225 未加载
评论 #16294070 未加载
评论 #16295720 未加载
Someone1234超过 7 年前
If you need to support IE 10, 11, or Edge then Grid is broken. Microsoft&#x27;s browsers follow an older spec than Chrome&#x2F;Safari&#x2F;Firefox. Microsoft are going to fix Grid in Edge 17, but no release date yet.<p>Unfortunately this is my life right now. When Chrome and Firefox dropped support for NPAPI a lot of enterprise customers intentionally moved their users back to IE 11. The loss of NPAPI has ironically increased IE 11&#x27;s market-share, talk about unintended consequences...<p>I understand why they didn&#x27;t but part of me wishes Microsoft had enabled NPAPI in Edge just so we&#x27;d at least get modern web standards even if NPAPI is bad and insecure. Instead IE 11&#x27;s life is now another five years at minimal or until the last Java Applet, ActiveX control, or Flash page disappears.<p><a href="https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid</a>
评论 #16292320 未加载
评论 #16292326 未加载
评论 #16292292 未加载
评论 #16294166 未加载
评论 #16295083 未加载
评论 #16295837 未加载
Dangeranger超过 7 年前
Jen Simmons and Rachel Andrew have done really great work on making CSS Grid sensible to comprehend. I cannot recommend their resources enough.<p>- <a href="http:&#x2F;&#x2F;labs.jensimmons.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;labs.jensimmons.com&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;gridbyexample.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gridbyexample.com&#x2F;</a>
评论 #16292363 未加载
评论 #16294184 未加载
评论 #16296343 未加载
msoad超过 7 年前
I worked with CSS Grids back in 2010 when I was working on a Windows 8 app. Since then I hated any other constraint resolver including Box Model, iOS Auto Layout and Flexbox model.<p>CSS Grid is so intuitive you forget how difficult this problem has been in the history of UI engineering
评论 #16292325 未加载
ruairidhwm超过 7 年前
The Wes Bos course on CSS Grid is free and excellent. Check it out: <a href="https:&#x2F;&#x2F;cssgrid.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cssgrid.io&#x2F;</a>
评论 #16293286 未加载
gmiller123456超过 7 年前
I wonder if I&#x27;m alone in the opinion that whatever method is used to create a complex layout, the method needs to be Turing Complete. I can understand the appeal of being able to create some tags and not having to worry about what happens after that, but you really only end up with a good design if you&#x27;re just trying to do something simple. We often see people so devoted to the idea of CSS they end up with something incredibly complicated that could have been done in just a handful of lines of code.<p>edit: Fixed spelling of &quot;Touring&quot;
评论 #16293211 未加载
评论 #16293289 未加载
pg_bot超过 7 年前
As someone who recently converted to using CSS grid for my company, I can&#x27;t imagine going back. It really reduces the mental overhead when building complex layouts and has made my code shorter and easier to understand.
评论 #16292443 未加载
JepZ超过 7 年前
It&#x27;s funny, as six month ago I wasn&#x27;t very fond of the whole &quot;Grid is ready today&quot; talk with ~65% of browsers supporting it. But actually I am glad that within 6 month that percentage seems to have risen by another 10% so that we have ~75% today: <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;#feat=css-grid</a><p>And when you take a closer look to the numbers you can see that in another 6 to 12 month the technology should be practically out there in every browser, as the few who will still not have it, will be some mobile browsers which will use the mobile first baseline variant anyway, if you follow the recommendations from the video.<p>Pretty cool stuff.
Animats超过 7 年前
Tables. They&#x27;re back!
评论 #16294396 未加载
评论 #16296518 未加载
评论 #16296214 未加载
bajsejohannes超过 7 年前
Any idea why the grid is 1-indexed instead of 0-indexed?
评论 #16295387 未加载
评论 #16294327 未加载
cryptos超过 7 年前
It looks like Bootstrap could be reduced to a pure UI component framework now.
wes-k超过 7 年前
Have yet to dive in to CSS Grids and this really made it clear what pain it is solving. I&#x27;m super excited to start using this!<p>Also kudos to the speaker, Morten Rand-Hendriksen, that was a very enjoyable presentation!
TACIXAT超过 7 年前
The first part of this video totally highlighted all the frustrations I&#x27;ve had with CSS. Super excited to try this on my project.
ronnier超过 7 年前
Is there a good pollyfill for older browsers?
评论 #16292886 未加载
esfandia超过 7 年前
Reminds me of GridBagLayout in Java Swing. Can anyone here who has experience with both confirm this?
评论 #16296054 未加载