为什么CSS在Mac上无法使用Chrome生效?

时间:2015-07-29 16:48:04

标签: html css

我的女儿正在学习HTML / CSS,并且经历了以下示例: Head First HTML和CSS 首批示例之一指示读者插入以下内容:

<html>
    <head>
        <title> Starbuzz Coffee </title>
        <style type='text/css'>
            body {
                background-color: #d2b48c;
                margin-left: 20%;
                margin-right: 20%;
                border: 2px dotted black;
                padding: 10px 10px 10px 10px;
                font-family: sans-serif;
            }
        </style>
    </head>

    <body>
        <h1> Starbuzz Coffee Beverages </h1>

        <h2> House Blend, $1.49 </h2>
        <p> A smooth, mild blend of coffees from Mexico, Bolivia and   Guatemala.</p>

        <h2> Mocha Cafe Latte, $2.35 </h2>
        <p> Espresso, steamed milk and chocolate syrup. </p>

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

        <h2> Chai Tea, $1.85 </h2>
        <p> A spicy drink made with black tea, spices, milk and honey.           </p>
    </body>
</html>

HTML呈现得很好,但CSS似乎已被忽略,并且当有人要求查看页面底层的代码时不会出现。关于缺少什么的想法?如果在门口磕磕绊绊,很难通过一本书。

0 个答案:

没有答案