我遇到了一些基本的HTML和CSS问题,我认为它与我的HTML文件有关,试图找出表格。有人可以告诉我我做错了什么,以及如何使它看起来与我的例子相同。以下是我正在寻找的例子。表格和HTML5标记
CSS和HTML代码:
html {
background: purple;
padding: 0px;
margin: 0px;
}
#pageWrapper {
display: table;
vertical-align: top;
}
body {
font-family: Verdana, Arial, sans-serif;
background-color: white;
width: 800px;
height: 40%;
margin-left: auto;
margin-right: auto;
}
nav {
padding: 15px;
}
section {
width: 200px;
display: table-cell;
}
article {
width: 550px;
display: table-cell;
}
aside {
width: 225px;
display: table-cell;
}
footer {
text-align: center;
}
#header {
display: table-cell;
vertical-align: top;
background-color: white;
}
nav ul {
display: inline;
margin: 0px;
list-style-type: none;
padding: 5px 0px 5px 0px;
}
ul li {
display: inline;
padding: 5px 0px 5px 0px;
}
ul li a:link,
ul li a:visited {
color: green;
text-decoration: none;
}
ul li a:hover {
background-color: #c8b99c;
}
RAW Paste Data html {
background: purple;
padding: 0px;
margin: 0px;
}
#pageWrapper {
display: table;
vertical-align: top;
}
body {
font-family: Verdana, Arial, sans-serif;
background-color: white;
width: 800px;
height: 40%;
margin-left: auto;
margin-right: auto;
}
nav {
padding: 15px;
}
section {
width: 200px;
display: table-cell;
}
article {
width: 550px;
display: table-cell;
}
aside {
width: 225px;
display: table-cell;
}
footer {
text-align: center;
}
#header {
display: table-cell;
vertical-align: top;
background-color: white;
}
nav ul {
display: inline;
margin: 0px;
list-style-type: none;
padding: 5px 0px 5px 0px;
}
ul li {
display: inline;
padding: 5px 0px 5px 0px;
}
ul li a:link,
ul li a:visited {
color: green;
text-decoration: none;
}
ul li a:hover {
background-color: #c8b99c;
}
Credit 4 Practical
Home |
Link 1 | Link 2 | Link 3 | Link 4First Column Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Article Vivamus facilisis tincidunt eleifend. Mauris ultricies consequat molestie. Nam congue lectus et augue condimentum eget tincidunt quam pretium. Mauris ullamcorper, justo eu pulvinar placerat, risus nulla faucibus ligula,
non convallis erat massa ut erat. Proin porta feugiat dolor, sed consequat ante tristique et. Praesent ornare, odio in varius interdum, velit nisl sollicitudin urna, quis dapibus urna sapien eu neque. Maecenas bibendum, libero eu dictum semper,
sem ipsum congue nisl, a mollis est quam in velit. Cras vitae ligula ut nunc viverra dapibus. Vivamus facilisis eros sit amet est mollis pellentesque. Ut quis odio vel urna ornare lacinia. Aliquam vel justo posuere purus vehicula aliquam. Duis
ornare mollis nisi luctus suscipit. Sed viverra urna id enim malesuada ac ullamcorper risus sollicitudin. Maecenas faucibus tincidunt facilisis. Donec eu nibh ac metus aliquet imperdiet sit amet in eros. Ut ut nibh elit.
Aside Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril.
Footer The small print that goes in the footer. This hyperlink should display as a normally formatted link.
我想是最基本的,我可以,我还没有被引入到弯曲盒或类似的东西。
例子:
+0
Bioxvirus喜? ,请在邮件中包含代码,而不仅仅是链接到第三方网站。另外*“这是我正在寻找的例子”*不链接到任何东西 - 你忘了包括什么?目前还不清楚你的最终目标是什么。 –
+0
你试图模拟的例子在哪里? –
+0
你的html代码中没有,你想在表格中使用哪部分代码? –
A
回答
0
html {
background-color: purple;
}
body {
width: 800px;
margin-left: auto;
margin-right: auto;
background-color: white;
}
#pageWrapper {
display: flex;
}
section, aside { flex: 1; }
article { flex: 2; }
footer {
text-align: center;
}
nav {
padding: 15px;
display: flex;
justify-content: center;
}
nav ul {
margin: 0px;
list-style-type: none;
padding: 5px 0px 5px 0px;
}
ul li {
display: inline;
padding: 5px 0px 5px 0px;
}
ul li a:link,
ul li a:visited {
color: green;
text-decoration: none;
}
ul li a:hover {
background-color: #c8b99c;
}
Credit 4 Practical
Home |
Link 1 | Link 2 | Link 3 | Link 4First Column Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Article Vivamus facilisis tincidunt eleifend. Mauris ultricies consequat molestie. Nam congue lectus et augue condimentum eget tincidunt quam pretium. Mauris ullamcorper, justo eu pulvinar placerat, risus nulla faucibus ligula,
non convallis erat massa ut erat. Proin porta feugiat dolor, sed consequat ante tristique et. Praesent ornare, odio in varius interdum, velit nisl sollicitudin urna, quis dapibus urna sapien eu neque. Maecenas bibendum, libero eu dictum semper,
sem ipsum congue nisl, a mollis est quam in velit. Cras vitae ligula ut nunc viverra dapibus. Vivamus facilisis eros sit amet est mollis pellentesque. Ut quis odio vel urna ornare lacinia. Aliquam vel justo posuere purus vehicula aliquam. Duis
ornare mollis nisi luctus suscipit. Sed viverra urna id enim malesuada ac ullamcorper risus sollicitudin. Maecenas faucibus tincidunt facilisis. Donec eu nibh ac metus aliquet imperdiet sit amet in eros. Ut ut nibh elit.
Aside Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril.
Footer The small print that goes in the footer. This hyperlink should display as a normally formatted link.
由此产生的例图对不起,我是不是在我的第一个反应,希望更清晰,这是一个正确的响应....
2017-03-07 17:42:16
Bioxvirus