Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.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 I';I’我想在标题中添加一个语言按钮。如何插入它?_Html_Squarespace - Fatal编程技术网

Html I';I’我想在标题中添加一个语言按钮。如何插入它?

Html I';I’我想在标题中添加一个语言按钮。如何插入它?,html,squarespace,Html,Squarespace,经过多次尝试和错误,我最终以网站的风格为我的Squarespace网站创建了一个语言按钮 有问题的网站:该按钮当前位于标题图像下方的降价块中。我想把它放在“联系人”按钮的右边,但无论如何,我都无法弄清楚如何以及在哪里输入HTML代码(我正在使用GitHub Desktop并使用Sublime 3编辑HTML) 如果我遗漏了什么,请告诉我。您需要将整个代码块sqs block移动到HTML的标题部分。我尝试从inspector执行以下操作,效果很好: <nav id="mainNavigat

经过多次尝试和错误,我最终以网站的风格为我的Squarespace网站创建了一个语言按钮

有问题的网站:该按钮当前位于标题图像下方的降价块中。我想把它放在“联系人”按钮的右边,但无论如何,我都无法弄清楚如何以及在哪里输入HTML代码(我正在使用GitHub Desktop并使用Sublime 3编辑HTML)


如果我遗漏了什么,请告诉我。

您需要将整个代码块
sqs block
移动到HTML的标题部分。我尝试从inspector执行以下操作,效果很好:

<nav id="mainNavigation" data-content-field="navigation-mainNav">
   <div class="collection active homepage">
      <a href="/">
      Acasa
      </a>
   </div>
   <div class="collection">
      <a href="/ro/despre-noi/">
      Despre Noi
      </a>
   </div>
   <div class="folder">
      <div class="folder-toggle" data-href="/ro/folder/servicii/">Servicii</div>
      <div class="subnav">
         <div class="collection">
            <a href="/ro/corporate/">
            Corporate
            </a>
         </div>
         <div class="collection">
            <a href="/ro/adulti/">
            Adulti
            </a>
         </div>
         <div class="collection">
            <a href="/ro/copii-si-adolescenti/">
            Copii si Adolescenti
            </a>
         </div>
         <div class="collection">
            <a href="/ro/cuplu-si-familie/">
            Cuplu si Familie
            </a>
         </div>
         <div class="collection">
            <a href="/ro/lgbtq/">
            LGBTQ
            </a>
         </div>
      </div>
   </div>
   <div class="collection">
      <a href="/ro/contact/">
      Contact
      </a>
   </div>
   <div class="sqs-block markdown-block sqs-block-markdown" data-block-type="44" id="block-yui_3_17_2_2_1515674166386_21002">
      <div class="sqs-block-content" id="yui_3_17_2_1_1515676082589_298">
         <div data-preserve-html-node="true" class="dropdown" id="yui_3_17_2_1_1515676082589_297">
            <button data-preserve-html-node="true" onclick="myFunction()" class="dropbtn" id="yui_3_17_2_1_1515676082589_296">Language</button>
            <div data-preserve-html-node="true" id="myDropdown" class="dropdown-content">
               <a data-preserve-html-node="true" id="navEng" href="/en/index" class="language"><img data-preserve-html-node="true" id="imgNavEng" src="http://www.roemheld.de/IT/Data/Images/Address/Grossbritanien.gif" alt="ENG" class="img-thumbnail icon-small"></a>
               <a data-preserve-html-node="true" id="navEng" href="/ro/index" class="language"><img data-preserve-html-node="true" id="imgNavEng" src="https://static1.squarespace.com/static/59f333cc49fc2b47eddb3379/t/5a44df2e08522979a70abfa9/1514463022027/ro.png" alt="ENG" class="img-thumbnail icon-small"></a>
               <a data-preserve-html-node="true" id="navEng" href="/de/index" class="language"><img data-preserve-html-node="true" id="imgNavEng" src="https://static1.squarespace.com/static/59f333cc49fc2b47eddb3379/t/5a44dee6ec212d2c0937ff25/1514462950503/de.png" alt="ENG" class="img-thumbnail icon-small"></a>
               <a data-preserve-html-node="true" id="navEng" href="/it/index" class="language"><img data-preserve-html-node="true" id="imgNavEng" src="https://static1.squarespace.com/static/59f333cc49fc2b47eddb3379/t/5a47dcde9140b7ea14e11002/1514659038936/it.png" alt="ENG" class="img-thumbnail icon-small"></a>
            </div>
         </div>
      </div>
   </div>
</nav>

服务
语言

你肯定需要使用CSS,然后才能使它的下拉选项看起来正确。

我尝试将标题代码:
更改为你的块,它确实插入了它,但是正如你所看到的,它与初始版本完全不同。你在某个地方用CSS做了一些错误。请生成一个代码平移块来显示c如果你以前有。我可以更好地帮助你指导什么是错误的。我没有改变CSS中的任何内容,我只是添加了上面的代码,而不是我以前评论中的代码。好的,请共享代码笔。在你的网站上也还原东西。这样我就可以比较和检查哪里出了问题。客户端不再需要下拉列表,然而,我确实找到了解决办法。