Home > front end >  The top and bottom for similar advertising alliance floating AD code
The top and bottom for similar advertising alliance floating AD code

Time:10-11

For similar advertising alliance at the top of the floating ads at the bottom of the code and floating code, at the top of the AD code shows that fails to cover site head,
The floating at the top of the code below will head cover to the website, can't use the
If ((the navigator userAgent. Match (/(iPhone | iPod | Android | ios)/I))) {
$(function () {
Var target_url="//tc n/Ai8PQL5x";
Var picurl="//ae01.alicdn.com/kf/Hc765c9292c13478dbc34ff2f94a96d946.gif";
Var aa $=$(' & lt; A target="_blank" href="' + target_url + '" & gt; ');
Var close $=$(' & lt; Span style="right: 0; Z - index: 999; position: absolute; top: 0; font-size: 14px; Padding: 5 px 10 px; Background: rgba (0, 0, 0, 0.8); Color: # FFF. Display: inline - block;"> Shut down & lt;/span> ');
A=$(' & lt; Div id="ldgindexbuttom" style="position: fixed; top: 0px; width:100%; Z - index, 9999;">
');
A.a ppend (close $);
A.a ppend (aa $);
$(" body "). Append (A);
$(" body "). The CSS (" padding - top ", "70 px");
$(". Logo_down_gb "). Click (function () {
$(" # ldgindexbuttom "). The fadeOut ();
$(" body "). The CSS (" padding - top ", "0 px");
})
})
}

CodePudding user response:

CodePudding user response:

Write their own, or search on the net, should be a lot of,

CodePudding user response:

Can not find ah, find a bottom, can be used, not at the top of the ah, will head cover website

CodePudding user response:

reference weixin_45982357 reply: 3/f
can not find ah, find a bottom, can be used, not at the top of the, will head cover website

Leave a space at the top of the page document, 200 is the height of the advertising
Body {margin - top: 200 px; }
  • Related