这实际上非常简单,仅几行CSS代码:
div{
width:60%;
margin-right:auto;
margin-left:auto;
background-color:red;
}
这是根据您的代码的完整html示例:
Welcome to Wumbo.Net!::-moz-selection { /* Code for Firefox */
color: #ffffff;
background: #00ffaa;
}
::selection {
color: #ffffff;
background: #00ffaa;
}
/* unvisited link */
a:link {
color: #00ffaa;
}
/* visited link */
a:visited {
color: #00d486;
}
/* mouse over link */
a:hover {
color: #57ffd5;
}
/* selected link */
a:active {
color: #00ffaa;
}
#center{
width:60%;
margin-right:auto;
margin-left:auto;
background-color:white;
}
This Site is Under Construction!
In a few months, when I am finished, I will unveil this site! In the meantime,
also for updates, follow me on twitter.
I also have a Youtube channel where I upload stupid crap!
MY SOCIAL NETWORKZ
My Youtube Channel
My Newgrounds (I'm not super active on it)
I'm not sure what I'm going to do with this site,
But it will most likely be a portfolio, where I share all the drawings,
animations and other such things I've made.
Seeya!
~Wumbo
//!This is empty space to the skin customizer, this space is safe for content, feel free to use!\\
You are currently using the Dark Site Skin.Click Here to use the Light Site Skin
另外,我不知道您是否使用过它,但是www.w3schools.com是html / css / javascript(以上所有功能)的非常好的网站。 它具有教程和参考!