图层堆叠显示,并按照中心带你旋转

HTML层:

<div id="basicInformationBox" class="tab-panel-parent1 common-hide1">
   <div class=u-tab1>
      <span class='u-tab-btn1 active1' >基本情况</span>
   </div>
   <div id="shipDetailPanel1" class="tab-panel-child1 active1">
      <table>
         <tr>
            <td>
               <div class="lonLatPicture">
                  <span class="boat"></span>
                  <span class="bow"></span>
                  <span class="shipTraceDirection"></span>
                  <span class="waveHeight"></span>
                  <span class="flowVelocity"></span>
               </div>
            </td>



            <td>
            更新时间:<td id="1"></td>
            船舶名称:<td id="2"></td>
            船舶名称:<td id="3"></td>
            船舶名称:<td id="4"></td>

            </td>

            <td>
            <div class="bow"></div>
            <p>船首向</p>

            <div class="shipTraceDirection"></div>
            <p>船迹向</p>

            <div class="windDirection"></div>
            <p>风向风速(KTS)</p>

            <div class="waveHeight"></div>
            <p>浪向浪高(有效浪高)</p>

               <div class="flowVelocity"></div>
            <p>流向流速(KTS)</p>
            </td>
         </tr>
      </table>
   </div>
</div>

js代码:

basicInformationBox = layer.open({
    type : 1,
    shade : 0,
    closeBtn : 1,
    btnAlign : 'c',
    resize : false,
    //move : true,
    fixed: false,
    offset : [ '100px', '255px' ],
    area : '430px',
    maxmin : false,
    title : shipObj.shipname,
    //btn : [ '关闭' ],
    content : $("#basicInformationBox"),
    success : function(layerdom, index) {
    },
    end : function() {
        closeShipLineForCustomShip(shipDetailBoxVM.shipObj.imo);
        CustomAndSelectedAisShipFeatureLayer && CustomAndSelectedAisShipFeatureLayer.removeSelected();
    }
});

css代码:

#basicInformationBox .bow{
   background-image: url(../../img/index/bow.png);
}

#basicInformationBox .bow {
   height: 12px;
   width: 38px;
}
#basicInformationBox .windDirection{
   background-image: url(../../img/index/wind23-27right.png);
}

#basicInformationBox .windDirection {
   height: 28px;
   width: 38px;
}
#basicInformationBox .shipTraceDirection{
   background-image: url(../../img/index/shipTraceDirection.png);
}
#basicInformationBox .shipTraceDirection{
   height:12px;
   width:38px;
}
#basicInformationBox .lonLatPicture{
   background-image: url(../../img/index/lonLat.png);
}
#basicInformationBox .lonLatPicture{
   height:258px;
   width:268px;
   position:relative;
}

#basicInformationBox .flowVelocity{
   background-image: url(../../img/index/flowVelocity.png);
}
#basicInformationBox .flowVelocity{
   height:28px;
   width:23px;
}


#basicInformationBox .waveHeight{
   background-image: url(../../img/index/waveHeight.png);
}
#basicInformationBox .waveHeight{
   height:12px;
   width:38px;
}
#basicInformationBox .boat{
   background-image: url(../../img/index/boat.png);
}
#basicInformationBox .boat{
   height:82px;
   width:19px;
}
.lonLatPicture .boat{
   position: absolute;
   left: 50%;
   top: 50%;
   margin-left: 3px;
   margin-top: 5px;
   transform: rotate(34deg);
}
.lonLatPicture .bow{
   position: absolute;
   left: 50%;
   top: 50%;
   margin-left: -4px;
   margin-top: 5px;
   transform: rotate(50deg);
}
.lonLatPicture .waveHeight{
   position: absolute;
   left: 65%;
   top: 26%;
   transform: rotate(138deg);
}
.lonLatPicture .flowVelocity{
   position: absolute;
   left: 27%;
   top: 63%;
}
#shipDetailPanel1 td{
   position: relative;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值