我目前正在学习网络开发,并且正在练习我的html和css。 我创建了一个页面,其中div通过CSS彼此叠加。 做到这一点,我学会了我可以把背景图像放在CSS中。 这是我的英雄形象的原型。 enter image description here如何让我的英雄形象在CSS点击?
我希望左边的3瓶可点击。我想每个瓶子点击后带我去一个div。那可能吗?
在此先感谢
.section {
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}
.secOne {
background-image: url("../img/finbluehero.jpg");
}
.sub_sectionOne {
height: 50%;
background-color: #000B29;
}
.secTwo {
background-image: url("../img/finredhero.jpg");
}
.sub_sectionTwo {
height: 50%;
background-color: #D70026;
}
.secThree {
background-image: url("../img/finyellowhero.jpg");
}
.sub_sectionThree {
height: 50%;
background-color: #edb83d;
}
.footer {
height: 100px;
background-color: #f8f5f2;
}
<div class="section">
<div class="section secOne"></div>
<div class="sub_sectionOne"></div>
<div class="section secTwo"></div>
<div class="sub_sectionTwo"></div>
<div class="section secThree"></div>
<div class="sub_sectionThree"></div>
<div class="footer"></div>
</div>
没有解决投递工作? – TheDarkKnight