use*_*776 2 javascript popper.js
这就是我创建 popper 对象的方式:
varpositioner = new Popper($(".js-search-container").get(0),
$(".js-search").get(0),
{
placement: 'bottom-start',
offsets: {
top: '10px',
}
}
);
Run Code Online (Sandbox Code Playgroud)
我想在js-search-container和js-search对象之间创建一些偏移量,但我尝试设置偏移量似乎没有效果。
到目前为止我的调查:
请改用此代码。
varpositioner = new Popper($element, tip, {
placement: attachment,
modifiers: {
offset: {
offset: "-10,0"
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3075 次 |
| 最近记录: |