HTML on top of NPAPI plugin

后端 未结 2 1468
小蘑菇
小蘑菇 2021-01-14 11:44

After I finished writing my browser plugin using FireBreath and OpenGL, and embedded the plugin using an object tag, I tried to overlay various HTML elements on top of the p

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-14 12:18

    Try this solution which worked perfect for me.

    Place a dummy IFrame below the plugin and place your required html in a div just below it.

    
    
    
    My html goes here. It will be placed over the plugin!

    and the CSS

    .myClass

    {
    
    position:absolute;
    width:250px; // your required height and width for the overlay html
    height:250px;
    other css as per your style
    
    }
    

提交回复
热议问题