开发者

link css,javascript from xcode

First, I created a xcode project and copied and pasted the CSS and javascript files into project folder. Second, I loaded a local .html file to UIWebView.But the css files and javascript files don't fire.

<html>
<head>
    <meta charset="UTF-8" />
    <title>test</title>
<link rel="stylesheet" type="text/css" href="css/mycss.css" ></link>
 <script src="libs/jquery-1.4.2.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>          
    <div id="home" class="current">
        <div class="toolbar">
            <h1>test</h1>
        </div>
        <ul id="subscriptions">

        </ul>
    </div>
</body>开发者_开发知识库;
</html>

can some one shine some light.

Thank


You are using the wrong tag to import your CSS, and you have not imported the JavaScript at all.

Try:

<head>
   <link rel="stylesheet" type="text/css" href="css/mycss.css" ></link>
   <script type="text/javascript" src="js/myjs.js"> </script>
</head>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜