Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 出现不需要的字符,为图像提供Url_Html_Url_Hyperlink - Fatal编程技术网

Html 出现不需要的字符,为图像提供Url

Html 出现不需要的字符,为图像提供Url,html,url,hyperlink,Html,Url,Hyperlink,我有以下顺序的图像:[图像][图像] 当我给他们每个人一个url时,-字符令人惊讶地出现在他们之间。我不明白为什么,-出现 代码如下: <div style='float:left; width:320px;'> <span> <a href='http://www.boun.edu.tr'/> <img style='width:75p

我有以下顺序的图像:[图像][图像]

当我给他们每个人一个url时,-字符令人惊讶地出现在他们之间。我不明白为什么,-出现

代码如下:

<div style='float:left;  width:320px;'>
                <span>
                     <a href='http://www.boun.edu.tr'/>
                     <img style='width:75px; height:75px' src='$img_root/logo_bogaz.jpg' alt='logo bogazici university'> 
                </span>
                <span>
                     <a href='http://www.gyte.edu.tr'/>
                     <img style='width:70px; height:70px' src='$img_root/gyte.gif'    alt='logo gyte'>  
                </span>
</div>

和输出:


它是锚定标记下划线的一部分。您可以按照以下步骤删除下划线。(注意,这将为所有链接删除它)

添加此项以修复:

<style>
a {
    text-decoration:none;
}
</style>

a{
文字装饰:无;
}
理想情况下,这应该放在一个单独的CSS文件中。但是将它添加到HTML的顶部,以便于测试