【发布时间】:2016-02-29 18:27:13
【问题描述】:
我是Html/CSS 的新手,现在我正在尝试为朋友创建一个网站(仅使用 html 和 css)。在页脚中,我想在此 photo 中添加 img:How I want
但是,到目前为止,我所能做的就是:
我可以按照我想要的方式放置文本并制作边框,我可以在鼠标悬停时放置一种蓝色并且可以在所有边框空间中单击。 但是,我无法将这个图标图像放在里面。你能帮帮我吗?
非常感谢!
#footer {
height: 500px;
width: 100%;
bottom: 0;
background: #b6b6b6;
display: table;
color: white;
text-align: center;
background-repeat: no-repeat;
background-size: 100%;
}
#atua {
width: 30%;
display: inline-block;
text-align: initial;
}
.job {
border: 2px solid #ffffff;
width: 75%;
height: 35px;
margin: 0;
margin-bottom: 5px;
padding-top: 8px;
padding-left: 50px;
}
div #atua a {
text-decoration: none;
color: #ffffff;
}
div .job:hover {
background-color: #14aca9;
<div id="footer">
<div id="atua">
<h3>Área de Atuação</h3>
<a href="#"><p class="job">Trabalhista</p></a>
<a href="#"><p class="job">Empresarial</p></a>
<a href="#"><p class="job">Previdenciário</p></a>
<a href="#"><p class="job">Cívil</p></a>
</div>
</div>
【问题讨论】:
-
请在此处提供您的代码
-
您好,我编辑了帖子以提供代码 =) 抱歉。