课程: Advanced Responsive Layouts with CSS Flexbox

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Handing control to the user

Handing control to the user

- One of the main reasons I'm so excited about Flexbox like you've seen so far in the course is that it takes a lot of things that used to be really hard or in some cases impossible and make them really easy using plain CSS. But another reason why I like Flexbox is that it opens up some new opportunities for us as designers and developers to integrate the user more deeply into the experience. What I have in mind here are things like allowing the user to decide where a sidebar appears. Normally when you ship a site you don't really want a user to mess around with the layout because you've have to write two entirely separate sets of markup and you'd have to write complex CSS and then once the user interacts with the content you'd have to reload all the stuff into the browser and it would be very complex. But as you've seen with Flexbox you can do things like reorganize content on the page in a really easy way just by adding one or two lines of CSS. So what used to be really complicated…

内容