代码在浏览器里没效果

<html>
  <head>
   <title>"starbuzz coffeeBeverager"</title>
    <style type="text/css">
       boby{background-color: $d2b48c;
             margin-left: 20%;
             margin-right: 20%;
             border:2px dotted block;
             padding: 10px;
             font-family: sans-serif;}
    </style>


</head>
    <boby>
        <h1>Starbuzz Coffee Beverages</h1>

  <h2>House Blemd,$1.49</h2>
   <p>A smooth.mild blend of coffees from Mexico,Nolivia amd Guatemala.</p>

   <h2>Mocha cafe Latte,$2.35</h2>
    <p>Espresso,steamed mlik and chocolate strup.</p>

      <h2>cappuccino,$1.89</h2>
         <p>A mixture of espressp, steamed milk and foam.</p>

          <h2>chai tea,$1.85</h2>
            <p>A spicy drink made wiht black tea,spices,milk and honey</p>
             
  </boby>
</html>

http://img.mukewang.com/58e3a3840001579c12670772.jpg

颓废的袁先森丶
浏览 1560回答 3
3回答

自由的气息

你看的应该是Head First 与css这本书,发现代码的几个错误:未声名文档类型;未声名字符编码;background-color: $d2b48c;背景颜色应该是#d2b48c;不是$符号开头;border:2px dotted block;边框参数为width,style,和color,你这里color写错了,不是block,应该是颜色,eg:blue等;body标签写错了,应该多注意细节,加油。

侠客岛的含笑

哥,body还不好。求采纳
打开App,查看更多内容
随时随地看视频慕课网APP