Wordpress:为什么我的孩子主题不带一些CSS?

时间:2015-11-25 03:05:24

标签: css wordpress

我正在使用儿童主题修改二十三个主题。但是,当我激活它时,一些CSS似乎已经恢复到2000年。Screenshot以供参考。为什么会这样?我的儿童主题样式表非常空白......注意 - 我删除了我读过的评论的其他部分是不必要的,例如描述和诸如此类的。

/*Theme Name:   Twenty Thirteen Child

 Template:     twentythirteen
 **/


<style>


#fd_question_submit_button {
    position:absolute;

}

</style>

检查Chrome上的元素

element.style {
}
localhost/media="all"
#fd_question_submit_button {
    position: absolute;
}
localhost/media="all"
#anspress *, #anspress *:before, #anspress *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
user agent stylesheetinput:not([type="image" i]), textarea {
    box-sizing: border-box;
}
user agent stylesheetinput[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
    padding: 1px 6px;
}
user agent stylesheetinput[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
    align-items: flex-start;
    text-align: center;
    cursor: default;
    color: buttontext;
    padding: 2px 6px 3px;
    border: 2px outset buttonface;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
    background-color: buttonface;
    box-sizing: border-box;
}
user agent stylesheetinput[type="button" i], input[type="submit" i], input[type="reset" i] {
    -webkit-appearance: push-button;
    -webkit-user-select: none;
    white-space: pre;
}
user agent stylesheetinput {
    -webkit-appearance: textfield;
    padding: 1px;
    background-color: white;
    border: 2px inset;
    border-image-source: initial;
    border-image-slice: initial;
    border-image-width: initial;
    border-image-outset: initial;
    border-image-repeat: initial;
    -webkit-rtl-ordering: logical;
    -webkit-user-select: text;
    cursor: auto;
}
user agent stylesheetinput, textarea, keygen, select, button {
    margin: 0em;
    font: 13.3333px Arial;
    text-rendering: auto;
    color: initial;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
}
user agent stylesheetinput, textarea, keygen, select, button, meter, progress {
    -webkit-writing-mode: horizontal-tb;
}
Inherited from div.ap-a-cells.clearfix
localhost/media="all"
#anspress .ap-a-cells {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-left: 70px;
    padding: 10px;
    font-size: 14px;
}
Inherited from div#anspress
localhost/media="all"
#anspress {
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    background: #fff;
}
Pseudo ::before element
localhost/media="all"
#anspress *, #anspress *:before, #anspress *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
Pseudo ::after element
localhost/media="all"
#anspress *, #anspress *:before, #anspress *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

1 个答案:

答案 0 :(得分:1)

如果这是您的CSS样式表,则不需要在其中包含style标记,它不是HTML文件。这可能会导致其他CSS文件出现很多问题,具体取决于它们加载的顺序。