2015-06-29 61 views
0

我試圖通過css禁用元素標籤上方的三角形。要查看這些,請按下鏈接,(聽,看,細細品味)有虛線和文字。在文字上有一個紅色的三角形/箭頭不居中。我已經成功完成了菜單,但沒有完成元素標籤。有問題的網站是:tedmartinez.com基本CSS幫助 - 刪除形狀

.content-title span:before { 
display: none; 
} 

.content-title span:before { 

    content: none; 

} 

span.content-title { 
    display:none; 
} 
span { 
    display:none; 
} 

.content-title span:before { 
    content: none; 
} 
#content-title span:before { 
    content: none; 
} 

此代碼上面並沒有禁用它的元素/內容標題的工作。

/*removing all arrows and triangles from Tripod*/ 
nav.main-menu > ul > li.selected:before, nav.main-menu > ul > li.active:before { 
content: none; 
} 

nav.main-menu>ul>li:last-child:after{ 
content: none; 
} 

.sf-menu > li:hover > ul:before, 
.sf-menu > li.sfHover > ul:before { 
content: none; 
} 

nav.main-menu > ul > li:before { 
    content: none; 
} 

.widget h5.widget-title span:before { 
    content: none; 
} 

#reply-title span:before, #comments-title span:before, .related-title span:before { 
    content: none; 
} 
/*tripod menu arrows while active*/ 
    nav.main-menu > ul > li.selected:before, nav.main-menu > ul > li.active:before { 
      content: none;} 

/*tripod menu arrows while hover*/ 
    nav.main-menu > ul.sf-menu li:hover:before, nav.main-menu > ul.sf-menu li.sfHover:before{ 
      content: none;} 

這可以在菜單上禁用它。

這是行不通的。當我編輯HTML時,就在我的瀏覽器中的檢查元素下,如果我刪除了它工作的span標籤。另外,我想將元素標籤的文字居中。進入品味頁面查看。我想要把味道放在一條線上,然後一會兒放在另一條線上,同時保持中心位置。我該怎麼做?非常感謝!

+0

你沒有張貼您的鏈接 –

+0

@AdamBuchananSmith它貼在那裏,tedmartinez .COM。我不知道爲什麼它沒有變成超鏈接。也許我做錯了:( – Yomo710

+0

@ Yomo710使用鏈接標記:'[鏈接](http://example.com)' –

回答

1

試試這個

.content-title span:before{ 
    border-left: none; 
    border-right: none; 
} 

要回答你的第二個問題width設置爲50%,讓您的文字從包裝

.content-title span { 
    padding: 10px 15px 0 15px; 
    position: relative; 
    display: inline-block; 
    z-index: 2; 
    border-radius: 10px; 
    width: 50%; 
} 
+0

我把課程設置爲它,它的功能就像一個魅力。對於所有那些想知道的,在未來,如果你遇到過這個問題,這就是我使用的內容。 – Yomo710

+0

.content-title span:before { border-left :none; border-right:none; } – Yomo710

+0

您是否知道如何解決其他問題?我想將元素標籤的文本居中。 vor頁面查看。我想要把味道放在一條線上,然後一會兒放在另一條線上,同時保持中心位置。我該怎麼做?非常感謝! – Yomo710