code: function checkParentsProperty(elem, property, value) {
      while (elem = elem.offsetParent) {
          if (getCss(elem, property) === value) {
              return true;
          }
      }
      return false;
  }
docs: 检查元素或其祖先节点的属性是否等于预给值
  @param elem {element} 起始元素
  @param property {string} css属性
  @param value {string} css属性值
  @returns {boolean}