这是我style.css
的基于 Blankslate 的 Wordpress 主题(我没有更改任何 PHP。我刚刚启动了 CSS)。
我已经突出显示了元素的边框以使它们可见......并且所有内容都溢出了body
边框。这是整个 CSS:
/* = CSS Reset
-------------------------------------------------- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;padding:0;border:0;margin:0;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}
/* =Highlight
highlight the basic structural elements of the site
-------------------------------------------------- */
body {border: thin solid red;}
#sidebar {border: thin solid blue;}
#content {border: thin solid green;}
/* =Structure
-------------------------------------------------- */
body {
width: 1000px;
float: center;
margin: auto;
}
#sidebar {
width: 300px;
float: right;
}
#content {
width: 500px;
float: left;
}