Tips will be the top issue when using toolTip blocked plug-in bootstrap

Bootstrap in the popover blocked Solutions

In Bootstarp we can use the popover plug-in to do some show content,

code show as below:

<a data-toggle="popover" data-placement="top" data-trigger="hover" data-content="详情详情详情"> 
    <span> show details </ span> 
</a>

 

Write it this way, if the parent has overflow: hidden property, you will find that beyond the portion of the vessel will not be displayed.

 

How to solve it?

We just add an attribute in the above code: Data-Container = "body"   to. Results as shown:

 

Official API explanation:

 

Solutions from:

https://stackoverflow.com/questions/16863015/bootstrap-tooltip-working-but-hidden-due-to-z-index

In Bootstarp we can use the popover plug-in to do some show content,

code show as below:

<a data-toggle="popover" data-placement="top" data-trigger="hover" data-content="详情详情详情"> 
    <span> show details </ span> 
</a>

 

Write it this way, if the parent has overflow: hidden property, you will find that beyond the portion of the vessel will not be displayed.

 

How to solve it?

We just add an attribute in the above code: Data-Container = "body"   to. Results as shown:

 

Official API explanation:

 

Solutions from:

https://stackoverflow.com/questions/16863015/bootstrap-tooltip-working-but-hidden-due-to-z-index

Guess you like

Origin www.cnblogs.com/nlyangtong/p/10966496.html