css样式表位置ubuntu linux

时间:2017-03-08 09:54:04

标签: php html css linux ubuntu

我想是一个相当愚蠢的问题。我正在尝试将Web模板添加到我在Ubuntu中的PHP文件中,我已经定义了链接并将<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <table id="table66" class="table table-bordered table-hover copySubName"> <input type="button" class="btn green" value="Add New+" id="insert66"></input> <thead> <th>Employee Name</th> <th> is mandatory</th> </thead> <tbody> <tr> <td> <input type="text" class="form-control EmpName" name="EmpName"> </td> <td> <input type="checkbox" id="mandatorySub"> </td> </tr> </tbody> </table> <div class="portlet light portlet-fit box individual individualSalSection"> <div class="portlet-body individual individualSalSectionSub"> Table2: <table id="tableboth" class="arrSubjects table table-striped table-hover arrSubjects individual"> <thead> <th>Employee</th> <th> Marks</th> <th> is mandatory</th> </thead> <tbody> <tr> <td> <input type="text" class="form-control EmpName" disabled="true" name="EmpName"> </td> <td> <input type="text" class="form-control years allownumericwithoutdecimal" maxlength="3" name="years"> </td> <td> <input type="checkbox" id="mandatorySub"> </td> </tr> </tbody> </table> </div> </div>文件存储在我的其他PHP文件所在的相同位置,例如form.css但由于某种原因我无法在我的网页中显示模板。见pic attached并感谢您的帮助。

var/www/html/web

1 个答案:

答案 0 :(得分:0)

我会检查一些事情:

  • form.css文件的权限。也许网络服务器没有访问权限?如果是,请运行chmod 644 form.css
  • 字母的情况,也许它被命名为Form.css而不是form.css不同于Windows Linux具有区分大小写的文件名
  • 也许它可以访问它,但文件中的代码是不可读的(错误的代码)。要测试这个,请创建另一个文件,它会执行您知道的工作并将其添加到项目中。或者尝试通过在网络浏览器中输入 localhost/path/to/form.css 直接访问它,看看它是否可以访问它。