在PHP文件上使用外部CSS

时间:2015-11-30 23:59:49

标签: php css

我之前没有使用过CSS的PHP文件,而且我在网上看到,如果我的css文件名为“style.css”,则使用它进行调用:

<head><link rel="stylesheet" type="text/css" href="style.css"></head>

现在我用于我的php文件的标题是:

<style type="text/css">
    body {background-color: #FFFFbd}
</style>
<title>Order Information DB</title>
<center><font size="18">
    Order Information<br>
</font></center>

<center>
<img src="MacDonaldLogoSmall.png" alt = "bulls logo">

</center>
        <center><p> 

            <a href="SeniorDB_Customer.php">Customer DB</a>
            -
            <a href="SeniorDB_Invoice.php">Invoice DB</a>
            -
            <a href="SeniorDB_Order.php">Order DB</a>
            -
            <a href="SeniorDB_Product.php">Product DB</a>
            -
            <a href="SeniorDB_Shipping.php">Shipping DB</a>
        </p>
    </center>
    <HR size="7" color="green">

    <center><div style="position: absolute; bottom: 5px;">
    </div>
</div>
</style>

因此,当我将其移至我的style.css文件时,它不会转移。有谁能解释为什么?我对CSS很新。

0 个答案:

没有答案