0

我一直在研究这个免费模板,它非常棒,但是在到达投资组合页面时,我遇到了一个障碍。HTML 代码如下:

<div class="item col-md-3 col-sm-4 col-xs-6" data-groups='["photography", "web", "video"]'>
  <a href="#!portfolio-item-2.html" class="hover-overlay">
    <img alt="Project 2" src="images/portfolio/preview/2.jpg" />
    <div class="overlay background-90-a">
      <div class="hidden-xs">
        <p class="title heading-a">YouTube Video</p>
        <p class="text-center heading-a"><strong>Excepteur sint lorem ipsum dolor sit amet consectetur.</strong></p>
        <p class="text-center"><i class="fa fa-youtube-square heading-a"></i></p>
      </div>

谈论 a 的部分是<a ref...>指我在模板文档中似乎找不到的 HTML 文件 (portfolio-item-2.html)。

我应该怎么办?

4

1 回答 1

0

您正在使用 #!在href中。尝试这个:

<div class="item col-md-3 col-sm-4 col-xs-6" data-groups='["photography", "web", "video"]'>
										<a href="portfolio-item-2.html" class="hover-overlay">
											<img alt="Project 2" src="images/portfolio/preview/2.jpg" />
											<div class="overlay background-90-a">
												<div class="hidden-xs">
													<p class="title heading-a">YouTube Video</p>
													<p class="text-center heading-a"><strong>Excepteur sint lorem ipsum dolor sit amet consectetur.</strong></p>
													<p class="text-center"><i class="fa fa-youtube-square heading-a"></i></p>
												</div>
 Run code snippetCopy snippet to answerHide results

于 2017-05-19T23:55:08.587 回答