0
私のページには、バナーdivとその下にsticky-kit jqueryプラグインを使用して貼り付けたdivがあります。jquery sticky div gap
スティッキーdivはバナーdivに対してハードになるはずですが、どういうわけか1ピクセルが忍び寄っています。つまり、テキストをスクロールすると、かなりの効果があります。
私はここでjsfiddleを作っており、アドバイスがあれば非常に感謝しています。私はjqueryのための他のスティッキープラグインを試してみました、そして、彼らはすべて同じ問題を持っているようです。
HTML:
<div id="header">
<h2>Main Banner</h2>
</div>
<div id="wrapper">
<div id="left">
<h2>Menu</h2>
</div>
<div id="right">
<table id="tableHeader" width="100%" class="myTable" cellspacing="0">
<tr>
<td bgcolor="#FFFFCC"><h2>Inner Banner</h2><br>aaa</td>
</tr>
</table>
<br>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
<br>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
<br><br>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of
Lorem Ipsum.
</div>
</div>
もし 'div#header'に' height:81px; 'をつけることができますか? – Banzay
doh !!!はい、ありがとうございます。 –
私は答えとしてそれを入れました – Banzay