2014-07-14 85 views
0

我目前正在使用jQuery UI的格式。我有一個具有「ui-state-error」類的div,其中的文本具有「ui-state-error-text」類。這裏是我的代碼:刪除下劃線中的文本內的下劃線<a>標籤

<div class="ui-widget"> 
    <a href="http://www.mobilehealtherecords.com/blog/news-announce/2014/06/faq- 
    page/" target="_newtab" style="font-decoration: none"> 
      <div class="ui-state-error ui-corner-all" id="questionAlert" style= 
      "margin: auto"> 
       <p class="ui-state-error-text"><span class="ui-icon ui-icon-alert" 
       style="float: left; margin-right: .3em;"></span><span style=" 
       color: font-weight: bold">Alert:</span> The "questions" page has 
       been permanently removed. Click here for more information.</p> 
      </div> 
    </a> 
</div> 

我不想列出所有我使用的是不同的資源,所以我包括jsfiddle。我想要做的是消除那個惱人的藍色下劃線。如果您注意到我已經嘗試通過插入帶有text-decoration:none的樣式將其從標籤中刪除。

+0

只是一個錯字_small_。當它應該是'text-decoration'時,你在'style'屬性中使用'font-decoration'。 ''應該做的招。 –

+0

HTML 5中是否有可能在內嵌標籤中包含塊標籤?我記得在xHTML中這是不允許的。 –

+0

這正是我工作的 –

回答