[英]HTML formatting not working in Chrome and Firefox
我正在尝试创建一个相对简单的交互式地图,该地图具有用作到地图图像上其他页面的超链接的标志。 当我在IE中打开页面时,它可以工作,但在Chrome或Firefox中不起作用。 这是代码:
<title>
Map of Wilmington
</title>
<head>
<style>
l1
{
position:absolute;
top=270px;
left=350px;
}
l2
{
position:absolute;
top=260px;
left=170px;
}
l3
{
position:absolute;
top=320px;
left=540px;
}
l4
{
position:absolute;
top=145px;
left=230px;
}
</style>
</head>
<body>
<img SRC="Map 1.jpg" ALT="Map of the city of Wilmington" WIDTH=638 HEIGHT=750></img>
<l1><a HREF="file:///C:/Users/alr2846/Desktop/CSC204/Map2%20UNCW.html">
<img STYLE="border:none;" SRC="Flag.jpg" ALT="University of North Carolina Wilmington
601 South College Road
Wilmington, NC 28407" WIDTH=24 HEIGHT=20></img></a></l1>
<l2><a HREF="file:///C:/Users/alr2846/Desktop/CSC204/Map3%20Downtown.html">
<img STYLE="border:none;" SRC="Flag.jpg" ALT="Downtown Wilmington" WIDTH=24 HEIGHT=20> </img></a></l2>
<l3><a HREF="file:///C:/Users/alr2846/Desktop/CSC204/Map4%20Beach.html">
<img STYLE="border:none;" SRC="Flag.jpg" ALT="Wrightsville Beach"
WIDTH=24 HEIGHT=20></img></a></l3>
<l4><img STYLE="border:none;" SRC="Flag.jpg" ALT="ILM Airport
1740 Airport Blvd
Wilmington, NC 28405" WIDTH=24 HEIGHT=20></img></l4>
</body>
</html>
最重要的是,您无需在页面顶部放置html标签。 首先,您必须具有html标签,然后,标题标签必须位于head标签中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.