0
我正在使用兒童主題來修改Twenty Thirteen主題。但是,當我激活它時,一些CSS似乎已恢復到2000年。Screenshot僅供參考。爲什麼發生這種情況?我的兒童主題樣式表非常空白...注意 - 我刪除了我讀過的評論的其他部分是不必要的,例如描述和whatnot。WordPress的:爲什麼我的孩子主題不帶一些CSS?
/*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;
刪除了標籤,但它仍然看起來搞砸了。在瀏覽器的開發工具中可能有一個工具可以幫助我看看發生了什麼? – whatwhatwhat
當然,請嘗試使用元素檢查器,看看是否將舊CSS應用於某些主要元素。 – Shomz
我編輯了問題以添加我發現的內容。我不確定這些東西是什麼。 '#fd_question_submit_button'是我的。再下來看起來它可能來自另一個插件。我不明白 - 另一位作者的插件可以修改我在** MY **插件中修改和修改的按鈕? – whatwhatwhat