官术网_书友最值得收藏!

Summary

In this chapter, we learned about some of the new CSS3 features that can be used to make your applications pop and provide a lot of visual feedback to the user. We updated our tasklist application by adding rounded corners and shadows to the task elements, and adding images to the task tool buttons. We added a gradient to the background and a theme selector to allow the user to change the color scheme. We also added some transitions to make changes look more natural.

We covered the following concepts in this chapter.

  • How to define colors with transparencies in CSS3
  • How to give elements rounded corners
  • How to add shadows to elements and text
  • How to create linear and radial gradients
  • How to use CSS3 transitions and transforms to create visual effects
  • How to use CSS sprites to reduce the network footprint of your applications
  • How to dynamically load stylesheets
  • How to make your application fill the entire window

One last thing before we go on. Let me leave you with a word of warning. Just because CSS3 has all of these great effects, it doesn't mean you have to use them all in your application. Every text doesn't need a shadow, you don't need to make your backgrounds have rainbow-colored gradients, and every element doesn't need to be rotated 30 degrees. Judicious use of these effects will make your application look professional; overuse will make them look comical.

In the next chapter, we will take our task list application to the next level by adding a details section to each task that uses some of the new HTML5 input types. We will also learn how to use custom data attributes to bind the data model to input elements.

主站蜘蛛池模板: 罗平县| 湟源县| 富宁县| 墨竹工卡县| 阜新| 溧阳市| 雅安市| 镇平县| 枣庄市| 应用必备| 万荣县| 武鸣县| 鄂托克旗| 枝江市| 清原| 克拉玛依市| 萝北县| 齐河县| 苍溪县| 高陵县| 阿克陶县| 南通市| 重庆市| 麻阳| 宜昌市| 河西区| 夏邑县| 水富县| 建湖县| 凤冈县| 琼结县| 石景山区| 萨迦县| 襄垣县| 上高县| 龙泉市| 龙州县| 迁西县| 城口县| 治多县| 宜城市|