Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 用CSS定位popover_Html_Css_Twitter Bootstrap_Popover - Fatal编程技术网

Html 用CSS定位popover

Html 用CSS定位popover,html,css,twitter-bootstrap,popover,Html,Css,Twitter Bootstrap,Popover,我有一件像这样的府绸;当用户将鼠标悬停在第一个图像上时,他会在popover上看到第二个图像 我在脚本标记中使用它 $(“[rel=mypop]”).popover({placement:'right',html:true}) 一切正常,图像在页面中间。 但如果用户将鼠标悬停在页面上方或下方的图像上,则无法看到正确的图像 为了解决这个问题,我想我必须使用CSS <style type="text/css"> img[rel="mypop&quo

我有一件像这样的府绸;当用户将鼠标悬停在第一个图像上时,他会在popover上看到第二个图像

我在脚本标记中使用它

$(“[rel=mypop]”).popover({placement:'right',html:true})

一切正常,图像在页面中间。 但如果用户将鼠标悬停在页面上方或下方的图像上,则无法看到正确的图像

为了解决这个问题,我想我必须使用CSS

<style type="text/css">
    img[rel="mypop"] {
    }
</style>

img[rel=“mypop”]{
}
但我找不到在CSS样式中写入什么来在适当的位置显示用户popover

我希望用户看到没有冲突的任何部分的页面弹出窗口

我用过这个。 但我发现,使用popover(用于显示图像)并不合适。
所以现在我使用Colorbox来显示这种数据。

听起来像是绝对定位的问题,尽管没有看到代码,我也帮不了你。