用base标签吧,刚把这个标签整明白,
http://www.codeigniter.org.cn/forums/thread-10952-1-1.html
谢谢帮我解答的哥们
HTML复制代码
<!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">
<head>
<meta charset="utf-8" />
<title>Welcome to CodeIgniter </title>
<base href ="<?= base_url() ?> "> </base>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
复制代码
美工拿来的index.html不用改,在head里加个<base href ="<?= base_url() ?> "></base>就可以了
|