- HTML5 Web Application Development By Example Beginner's Guide
- J.M. Gustafson
- 291字
- 2021-08-13 16:50:25
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.
- 從零開始構建企業級RAG系統
- 演進式架構(原書第2版)
- jQuery Mobile Web Development Essentials(Third Edition)
- JavaScript Unlocked
- C語言程序設計基礎與實驗指導
- 用戶體驗增長:數字化·智能化·綠色化
- MATLAB 2020從入門到精通
- Learning FuelPHP for Effective PHP Development
- jQuery Mobile移動應用開發實戰(第3版)
- 執劍而舞:用代碼創作藝術
- 動手學數據結構與算法
- 計算機應用基礎教程(Windows 7+Office 2010)
- OpenCV 3 Blueprints
- 從Power BI到Analysis Services:企業級數據分析實戰
- 進入IT企業必讀的324個Java面試題