0
我为我的WordPress站点使用Twitter Bootstrap。问题是我只是将一个div制作成右侧栏,并在其上放置了一些图像,这似乎在我的桌面上运行良好,但是当我在笔记本上查看它时,它会更改其位置并向下移动。Div的位置不固定在不同的屏幕尺寸
这里是我的div和形象展示位置代码:
<div style="position:fixed; top:188px; right:0px; border:0px solid #f00; width:25px;"><a href="#"><img src="http://pearlacademy.com/wp/wp-content/uploads/2012/10/delhi.jpg" style="margin-bottom:5px;"></a>
<a href="#"><img src="http://pearlacademy.com/wp/wp-content/uploads/2012/10/noida.jpg" style="margin-bottom:5px;"></a>
<a href="#"><img src="http://pearlacademy.com/wp/wp-content/uploads/2012/10/jaipur.jpg" style="margin-bottom:5px;"></a>
<a href="#"><img src="http://pearlacademy.com/wp/wp-content/uploads/2012/10/chennai.jpg" style="margin-bottom:5px;"></a>
</div>
你为什么不给右上方宽度%,而thyan以像素为单位给予? –
仍然不工作的家伙.......我无法理解为什么?? plzzz帮助我 –
@马欣德拉辛格:尝试位置:绝对,而不是位置:固定 –