Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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
Css 如何将多个链接放在同一行上?_Css_Html_Hyperlink - Fatal编程技术网

Css 如何将多个链接放在同一行上?

Css 如何将多个链接放在同一行上?,css,html,hyperlink,Css,Html,Hyperlink,不幸的是,我的链接在不同的线路上。我尝试添加display:inline;在我的css中,但它根本没有帮助 <h5> <a href="start.html" target="search_iframe">Start </a> <a href="bildredigering.html" target="search_iframe">Bildredigering</a> <a href="start.html

不幸的是,我的链接在不同的线路上。我尝试添加display:inline;在我的css中,但它根本没有帮助

<h5>
    <a href="start.html" target="search_iframe">Start </a>
    <a href="bildredigering.html" target="search_iframe">Bildredigering</a>
    <a href="start.html" target="search_iframe">Foton</a>
    <a href="start.html" target="search_iframe">Vector </a>
    <a href="start.html" target="search_iframe">Om sidan</a>
</h5>

您似乎正在尝试创建一个菜单栏。如果这是您想要做的,那么您需要为您想要的每个菜单创建一个无序列表
,然后是
  • 以下是一个例子:

    ul{
    列表样式类型:无;
    保证金:0;
    填充:0;
    }
    李{
    显示:内联;
    }
    
    

    我希望这将有助于…

    您能提供一些代码吗???请提供一些代码,以便我们能够提供更好的帮助。你想制作一个菜单/导航栏吗?是的,这是我的意图…
      • 不是有意不加评论地发送它的。它没有任何效果,我尝试过,但它得到了相同的结果,不同的行。你添加了
        css
        ?我的css在一个单独的文件中,所以我只是删除了。如果你有
        • ,为什么不直接使用它呢?你是对的,这确实是一个更好的方法。但是她说有几个链接是这样的。
          
          a {
          float: left;
          }