【发布时间】:2017-02-09 05:33:03
【问题描述】:
在将鼠标悬停在文本列表上时需要帮助更改图像。我一直在这里查看几个示例,但仍然无法使其工作。有人可以查看我的代码并找出我做错了什么吗?
https://jsfiddle.net/8gnkjeze/1/
<section id="about-us" class="page-section light-bg no-pad">
<div class="container-fluid who-we-are">
<div class="row">
<div class="col-md-6 no-pad text-center">
<!-- Image -->
<div id="pic" class="pic"></div>
</div>
<div class="col-md-6 pad-60">
<div class="section-title text-left">
<!-- Title -->
<h2 class="title">Industries</h2>
</div>
<p>We have established a methodical structured approach for the design of service offerings that include maintenance, repair, and on a case-by-case basis overhaul service solutions.</p>
<div class="row">
<div class="col-md-6">
<ul class="arrow-style">
<li><div id="word" class="red"><a href="industries.html">Marine Construction</a></div></li>
<li><div class="red"><a href="industries.html#offshore-construction">Offshore Construction</a></div></li>
<li><div class="red"><a href="industries.html#industrial-construction">Industrial Construction</a></div></li>
</ul>
</div>
<div class="col-md-6">
<ul class="arrow-style">
<li><div class="red"><a href="industries.html#pipe-fabrication">Pipe Fabrication</a></div></li>
<li><div class="red"><a href="industries.html#onshore-construction">Onshore Construction</a></div></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
【问题讨论】:
-
只是要清楚......当将每个项目悬停在 ul 上时,#pic 会改变背景??? ....你将需要 JS
-
你能说出你到底尝试了什么吗? @DaniP 它可以很容易地在 CSS 中完成。这是微不足道的。
-
哪个文本列表??您是指
- 中的项目吗??
-
@AndreiGheorghiu 不可能使用实际标记
-
我猜你使用的是bootstrap,下次设置示例使用bootply bootply.com/DNo24y420z