今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Project: Adding background styles
(upbeat music) - [Instructor] In this project exercise, we'll be adding the background image to the homepage and some background styles to the footer as well. Although the Resume page also uses a background image, this style will require learning about a few more concepts to add the image only to the top, so we'll just leave this for now. Let's move back to the editor and add some CSS. Since we'll be adding just the background image to the homepage, let's go under the homepage comment block, and start by adding the selector, .home, and the curly brackets. Then we'll add the shorthand background property to apply the image to the body element on the homepage only. Add a colon, and then we'll use the URL function value to add the path to the image. To determine the file path, we need to start with the location of the CSS file. It's currently located within a CSS folder. So the path will actually start with .., which…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
CSS specifications and the W3C3 分钟 12 秒
-
(已锁定)
CSS syntax and terminology4 分钟 2 秒
-
(已锁定)
CSS values and units3 分钟 33 秒
-
(已锁定)
The color property and values4 分钟 31 秒
-
(已锁定)
Creating a color palette1 分钟 52 秒
-
(已锁定)
Type and universal selectors3 分钟 16 秒
-
(已锁定)
ID selectors2 分钟 34 秒
-
(已锁定)
Class selectors3 分钟 17 秒
-
(已锁定)
Descendant combinators and selector lists2 分钟 56 秒
-
(已锁定)
The background property4 分钟 39 秒
-
(已锁定)
Project: Prepping the CSS file4 分钟 5 秒
-
(已锁定)
Project: Adding background styles7 分钟 39 秒
-
(已锁定)
Pseudo-classes and pseudo-elements4 分钟 30 秒
-
(已锁定)
Inheritance and the cascade2 分钟 20 秒
-
(已锁定)
Specificity3 分钟 45 秒
-
(已锁定)
Project: Styling links5 分钟 23 秒
-
-
-
-
-
-
-