douhulao7642 2014-10-23 15:11
浏览 40
已采纳

链接在编辑器中给出错误

enter image description here

I am trying to tidy up a header in netbeans 8.0 which I am using as part of a view. The editor is underlining:

<link href="<?=base_url('css/bootstrap.css')"></link>

Please see screenshot. Why? what am I doing wrong?

The full code for my header is:

<head>
<base href="<?=base_url();?>">

<meta charset="utf-8">
<title>Your Contacts</title>
<meta name="description" content="manage your contacts with name, email and phone">
<meta name="author" content="yubi4dition">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
        <!--[if lt IE 9]>
              <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<!-- Le styles -->

<link href="<?=base_url('css/bootstrap.css')"></link>

<link rel="stylesheet" type="text/css" ></link>
<link href="<?=base_url('css/yourcontacts.css')?>" rel="stylesheet" type="text/css" ></link>

<link href="<?=base_url('css/font-awesome.css')?>" rel="stylesheet" type="text/css" ></link>

<link href="<?=base_url('css/tablesorter.css')?>" rel="stylesheet" type="text/css" ></link>

<!-- Le fav and touch icons -->
<link href="<?=base_url('css/ico/favicon.ico')?>" rel="shortcut icon" ></link>

<link rel="stylesheet" type="text/css" href="css/bootstrap-wysihtml5.css"></link>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"></link>



</head>
  • 写回答

2条回答 默认 最新

  • dongxun2903 2014-10-23 15:18
    关注

    Try

    <link href="<?=base_url('css/bootstrap.css') ?>"></link>
    

    you seem to lack the closing tag.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python