This是我的網頁。如您所見,當您懸停「廣告」按鈕時,轉換隻會顯示部分廣告。我想讓它顯示整個廣告。下面是我使用滑動框錯誤
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {$(".wcfbslide").hover(function() {$(this).stop().animate({right: "-5"}, "slow");}, function() {$(this).stop().animate({right: "-300"}, "medium");}, 500);});
</script>
<style type="text/css">
.wcfbslide{
background: url("http://danithemes.fanscity.eu/shugar/wp-content/uploads/2014/11/ads1.png") no-repeat scroll left center transparent !important;
display: block;
float: right;
height: 110px;
padding:0 5px 0 46px;
width: 295px;
z-index: 99999;
position:fixed;
right:-300px;
top:30%;
}
.wcfbslide div {
border:none;
position:relative;
display:block;
}
.wc-gplusfollow {
position: relative;
padding: 10px;
background:#ffffff;
border: 1px solid #ccc;
box-shadow: inset 0 0 30px rgba(0,0,0,0.1), 1px 1px 3px rgba(0,0,0,0.2);
}
</style>
<div class="wcfbslide">
<div class="wc-gplusfollow">
<script src="http://fanscity.eu/ads/728x90.js"></script>
</div>
</div>
它完美!但白色背景比AD更小。 – 2014-11-08 19:59:42
@PLLOnAbc只需將wc-gplusfollow類元素的寬度設置爲與容器相同的寬度 .wc-gplusfollow { width:728px; } – Zoheiry 2014-11-08 20:04:58
謝謝你!!!!! – 2014-11-09 00:06:01