我有一个 WordPress 网站,内容区域宽 960 像素。我有一个滑出面板,我已将其编码到网站中,但是当我将其向右浮动时,它只会转到 960px 内容区域的右侧。如何将其放置在内容区域之外的浏览器窗口的右侧。建议...想法?
此问题已得到纠正
我的新问题是滑出面板滑出时位于页面内容的后面。
这是滑出面板的 css
CSS的链接
I have a wordpress site where the content area is 960px wide. I have a slide out panel that i have coded into the site but when i float it right it only goes to the right of the 960px content area. How do i get it to the right hand side of the browser window outside of the content area. Sugestions...ideas?
This has been corrected
My new issue is that my slide out panel is behind my pages content when it slides out.
here is a link to the css for the slide out panel
CSS
发布评论
评论(3)
尝试
确保
.my-slide-panel
位于将position
定义为相对或绝对的容器中。Try
Make sure that
.my-slide-panel
is in container that hasposition
defined as relative or absolute.使用固定或绝对位置...
尝试
use fixed or absolute position...
try
对于内容后面的浮动元素,请尝试更高的 Z-index(如上所述),但要注意,如果内容是 Flash,则在调用 Flash 时需要添加参数:
参见 http://www.ozzu.com/website-design-forum/placing-div-over-flash-t25572.html 进行讨论。
In regards to the floated element behind your content, try a higher Z-index (as mentioned above), but be aware that if the content is Flash, you need to add a parameter when calling the flash:
See http://www.ozzu.com/website-design-forum/placing-div-over-flash-t25572.html for a discussion on it.