爲什麼:爲什麼這個html邊界只有三面?
<html>
<head>
<style>
#categorizer { border-style: solid; border-width: 10px;
border-color: blue; padding: 50px }
#children { color: green; background-color: yellow }
#parents { color: blue; background-color: #ccc }
</style>
</head>
<body>
<span id="categorizer">
<span id="children">
<span class="child">c11111</span>
<span class="child">c22222</span>
<span class="child">c33333</span>
<span class="child">c44444</span>
<span class="child">c55555</span>
</span>
<span id="parents">
<span class="parent">pAAA</span>
<span class="parent">pBBB</span>
</span>
</span>
</body>
</html>
只給我三個邊境兩側,即
首先,你不應該使用'span'。在這種情況下'div'會更合適,因爲這些不是內聯元素。而你不應該使用w3schools – 2013-04-07 14:57:27