我正在将.html文件加载到ID为#content
的div上。加载外部.html文件后,我收到以下错误:mismatched tag. Expected: </link>.
这是我正在加载的html文件:
<head>
<link rel="stylesheet" href="css/landing.css">
</head>
<body>
<div class="panel-header">
<p>Lokacija</p>
</div>
<div class="panel-body">
<p>Institut Jožef Stefan</p>
<p>Jamova 30</p>
<p>1000 Ljubljana</p>
<div id="map-canvas">
</div>
</div>
<div class="panel-header">
<p>Kontakt</p>
</div>
<div class="panel-body">
<p id="info">informacije:</p>
<a href="#"><span class="ion-email icon-link-mail"></span></a>
<a href="tel:+38614773304 "><span class="ion-ios-telephone icon-link-phone"></span></a>
<p>izposoja:</p>
<a href="#"><span class="ion-email icon-link-mail"></span></a>
<a href="tel:38614773304"><span class="ion-ios-telephone icon-link-phone"></span></a>
<p>bibliografije:</p>
<a href="#"><span class="ion-email icon-link-mail"></span></a>
<a href="tel:38614773247"><span class="ion-ios-telephone icon-link-phone"></span></a>
<p>vodja knjižnice:</p>
<a href="mailto:luka.sustersic@ijs.si"><span class="ion-email icon-link-mail"></span></a>
<a href="tel:38614773258"><span class="ion-ios-telephone icon-link-phone"></span></a>
</div>
<div class="panel-header">
<p>Delovni čas</p>
</div>
<div class="panel-body">
<p>Pon-čet: 8.00-17:30</p>
<p>Pet: 8.00-17:00</p>
</div>
<div class="panel-header">
<a href="http://www.cobiss.si/scripts/cobiss?command=CONNECT&base=50108"><p>Katalog</p></a>
</div>
</body>
如果我尝试删除<head>
代码,则会收到另一个错误not well formed
。还有另一种更合适的方法吗?我是否应该将所有我需要的css链接到我的主页上?
答案 0 :(得分:0)
您需要关闭link
标记,如下所示:
<link rel="stylesheet" href="css/landing.css" />