【问题标题】:overlayPanel to show img style onlyoverlayPanel 仅显示 img 样式
【发布时间】:2022-08-11 02:19:03
【问题描述】:

你好, 我有叠加层,我只想使用它来显示 img(没有叠加层样式),我编码取消宽度\\高度等的方式不像你看到的那样工作.. 有什么建议么?

<p-overlayPanel #op [style]=\"{\'border\':\'none\' ,\'height\': \'0\',\'width\': \'0\'}\">
                <img class=\"note-btn\" src=\"assets/images/fo_opinion_tooltip.svg\" width=\"800\" height=\"400\" alt=\"note-notified\"  />
              </p-overlayPanel>

谢谢

    标签: css angular primeng


    【解决方案1】:

    你发送的图片不是很清楚,但如果你想删除空格和阴影

    利用 :

    [style]="{'box-shaodw':'none' ,'padding':'0!important' ,'border':'none' ,'height': '0','width': '0'}"
    

    【讨论】:

      猜你喜欢
      • 2013-03-17
      • 1970-01-01
      • 2021-12-12
      • 1970-01-01
      • 1970-01-01
      • 2015-10-16
      • 2013-12-03
      • 2016-11-09
      • 2014-05-09
      相关资源
      最近更新 更多