行结束词在Internet Explorer 9中是截断的

时间:2014-10-10 20:35:18

标签: internet-explorer wordpress-theming word hyphen

我在使用ie9的段落中遇到问题,此页面上存在同样的问题 http://themble.com/bones/

sample from bones page

在此示例中,问题出现在单词" t
o"和" br
oswed"

如何解决这个问题? 编辑:这是一个wordpress骨骼主题

1 个答案:

答案 0 :(得分:0)

我在SASS中找到了这个片段

/*
some nice typographical defaults
more here:  http://www.newnet-soft.com/blog/csstypography 
*/
p {
  //-ms-word-break: break-all; //
  //-ms-word-wrap: break-all; // 
  //    word-break: break-word;
  //   word-break: break-word;
   word-wrap: break-word   // Good !
  // cleaning up the ragged lines and breaks
  -webkit-hyphens: auto;
     -moz-hyphens: auto;
          hyphens: auto;
  // sets a minimum number of characters before and after the break
  -webkit-hyphenate-before: 2;
   -webkit-hyphenate-after: 3;
           hyphenate-lines: 3;
  // enabling fancy ligatures when available
  -webkit-font-feature-settings: "liga", "dlig";
   -moz-font-feature-settings: "liga=1, dlig=1";
      -ms-font-feature-settings: "liga", "dlig";
       -o-font-feature-settings: "liga", "dlig";
          font-feature-settings: "liga", "dlig";
}

现在它的工作!

演示:http://codepen.io/raphaelgoetter/pen/JFqjz