为什么我的活动簿索引中的链接在IE中有效,但在Chrome中不起作用?

时间:2019-07-02 10:03:46

标签: html css google-chrome text-alignment turn.js

所以我已经坚持了一段时间,我也不知道该怎么办。我对编码还是很陌生。

因此,我创建了一个翻书,我想在它旁边放一个索引并链接文本,因此当您单击文本时,它会转到我链接到该页面的页面。但是,这不适用于Chrome,但IE可以正常运行。似乎在使用chrome的情况下,活页簿在与文本对齐时会阻止链接正常工作。当文字下方时,该链接将起作用...

有人可以帮我吗,被困了几个小时!

谢谢!

<html>
<body>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <script type="text/javascript" src="https://share.sp.ons.statistics.gov.uk/sites/mdr/SiteAssets/MDR%20Wiki/test/turn.js"></script>
        <style>
         
         body{
    overflow: hidden;
}

#flipbook{
    position: relative;
    width: 1200px;
    height: 700px;
    margin-left: -50px;
    top: -70px;
  
}
.page2 {
    text-align: center;
}
#flipbook .page{
    width: 1200px;
    height: 700px;
    background-color: #EEEEEE;
    line-height: 50px;
    font-size: 20px;
    top: 90px;
    text-align: center;
}

#flipbook .page-wrapper{
    -webkit-perspective: 2000px;
    -moz-perspective: 2000px;
    -ms-perspective: 2000px;
    -o-perspective: 2000px;
    perspective: 2000px;
}

#flipbook .hard {
    background: #5F5F5F !important;
    color: #FFFFFF;
    -webkit-box-shadow: inset 0 0 5px #666;
    -moz-box-shadow: inset 0 0 5px #666;
    -o-box-shadow: inset 0 0 5px #666;
    -ms-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666
    font-weight: bold;
    text-align: center;
    font-size: 60px;

}

#flipbook .odd{
    background: -webkit-gradient(linear, right top, left top, color-stop(0.95, #FFF), color-stop(1, #DADADA));
    background-image: -webkit-linear-gradient(right, #FFF 95%, #C4C4C4 100%);
    background-image: -moz-linear-gradient(right, #FFF 95%, #C4C4C4 100%);
    background-image: -ms-linear-gradient(right, #FFF 95%, #C4C4C4 100%);
    background-image: -o-linear-gradient(right, #FFF 95%, #C4C4C4 100%);
    background-image: linear-gradient(right, #FFF 95%, #C4C4C4 100%);
    -webkit-box-shadow: inset 0 0 5px #666;
    -moz-box-shadow: inset 0 0 5px #666;
    -o-box-shadow: inset 0 0 5px #666;
    -ms-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666;
}

#flipbook .even{
    background: -webkit-gradient(linear, left top, right top, color-stop(0.95, #fff), color-stop(1, #dadada));
    background-image: -webkit-linear-gradient(left, #fff 95%, #dadada 100%);
    background-image: -moz-linear-gradient(left, #fff 95%, #dadada 100%);
    background-image: -ms-linear-gradient(left, #fff 95%, #dadada 100%);
    background-image: -o-linear-gradient(left, #fff 95%, #dadada 100%);
    background-image: linear-gradient(left, #fff 95%, #dadada 100%);
    -webkit-box-shadow: inset 0 0 5px #666;
    -moz-box-shadow: inset 0 0 5px #666;
    -o-box-shadow: inset 0 0 5px #666;
    -ms-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666;
}


  .text2  { 
  display: inline-block;
  color: #616161;
}
  .text3 { 
  
}
</style>
 
<div class="text2">
<p><h1>Service Catalogue Index </h1></p>
</div>

<div class="text3">
  
  <a id="myCheck" onhover="myFunction()"onclick="$('#flipbook').turn('page',2);void(0)">Business Support</a>
  
</div>

<div id="flipbook">
  <div class="hard"> SSU Service Catalogue </div> 
  <div class="hard"></div>
  <div class="page" style="align-text: center; top: 90px;"> <h1>Business Support</h1>
<br>

0 个答案:

没有答案