php代码能不能调用css样式?

html-css021

php代码能不能调用css样式?,第1张

不可以在PHP页面调用CSS,只能在HTML等浏览器脚本页面调用,你的PHP代码可以同样写在BODY部分

<!DOCTYPE

html

PUBLIC

"-//W3C//DTD

XHTML

1.0

Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html

xmlns="http://www.w3.org/1999/xhtml"

xml:lang="en"

lang="en">

<head>

<meta

http-equiv="content-type"

content="text/htmlcharset=utf-8"/>

<title>Test</title>

<link

rel="stylesheet"

href="some.css"

type="text/css"

/>

</head>

<body>

<?php

?>

</body>

</html>

看代码,一看就懂

1.

{literal}

<script type="text/javascript" src="/javascript/wap/jquery.js"></script>

<script type="text/javascript" src="/javascript/wap/user.js"></script>

<script type="text/javascript" src="/javascript/wap/self_list.js"></script>

{/literal}

2.

<head>

<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />

<title>查看个人历史注册记录</title>

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

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

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

<link href="/style/wap/datetime/jquery.ui.all.css" rel="stylesheet" type="text/css" />

</head>

我要全分