2017-07-03 70 views
1

某些图标某些时候不可见(在引导模式下)。它很少发生。
所有的图标都在一个文件中,以便加载这些图标。
我验证了html,所有的标签都正确关闭。
如果我检查任何元素,并更改任何CSS属性(的任何元素)所有隐藏的图标立即显示。某些图标某些时候不可见

Bold and italic icon missing


All the icons are visinle

粗体,斜体和上引导模态的横图标都具有这个问题。

Html是由JavaScript(字符串)和附加到HTML引导模态元素。 Html是这样的:

<div class='padding0 pos-rel cursor-pointer inline-block block-width pop-btns toolbar-action both input'> 
    <i class='jd-font-inherit color-inherit font-10 edit-text pos-rel toolbar-action icon-bBold both input' key='[email protected]@bold'></i>&nbsp; 
    <div class='popover fade top in jd-font-roboto dark-gray-pop no-bdrs edit-detail-popover'> 
     <div class='arrow'></div> 
     <div class='popover-content'> 
      <span class='padding0 txt-white'>Bold</span> 
     </div> 
    </div> 
</div> 


<div class='padding0 pos-rel cursor-pointer inline-block block-width pop-btns toolbar-action text'> 
    <i class='jd-font-inherit color-inherit font-10 edit-text pos-rel toolbar-action icon-aDown text' key='[email protected]@decrease-font'></i>&nbsp; 
    <div class='popover fade top in jd-font-roboto dark-gray-pop no-bdrs edit-detail-popover'> 
     <div class='arrow'></div> 
     <div class='popover-content'> 
      <span class='padding0 txt-white'>Decrease Font</span> 
     </div> 
    </div> 
</div> 
+0

请分享你的HTML,或给问题网页的URL。 – Alexander

+0

你如何在页面中添加字体? – Alexander

+0

我们有我们自己的图标创建,我们从我们的静态服务器加载字体文件 –

回答

0

这取决于你如何使用例如。

  1. 如果您使用引导图标或字体真棒图标,那么您不应该使用cdn'。
  2. 如果图标您的驱动器是在本地,然后看到负荷的时候,那么你可以优化图标
+0

我们有我们的图标在本地文件,所有的图标都在同一个文件,但一些特定的图标有这个问题。 –