当我右键单击鼠标时不显示在新标签菜单中打开 [英] when i right click mouse not show the open in new tab menu
问题描述
我遇到了一个问题,当我尝试单击一个 div 时,它无法重定向.
<div class="square pull-left ui-draggable ui-draggable-handle"><img class="Width_40" src="Allbill.png" alt=""><span class="fa fa-heart fav-link FontSize-18" title="" data-original-title="添加到我的收藏夹"></span><a href="/customer/customerbilldetails"><h4>账单清单<p>报告列出帐单详细信息.</p></a>
我正在使用标签.在具有所有元素的标签内,
当我右击鼠标时没有显示在新标签菜单中打开...我该如何解决这个问题...请任何人帮忙.
打开新标签"和其他类似的选项只出现在链接中 ().您必须将所有内容放在
中.从技术上讲,它将打破内联元素内没有块元素"规则.但是,您可以将
<a>
设置为具有 display:block
的样式,因此它的作用类似于
这里有类似的情况:一个可点击的 <li>使用<a>标签 - 没有要使用的 JS.它是合法的 HTML 吗?
I have a problem, when i try to click a div it cannot redirect.
<div class="blockquote-box blockquote-success clearfix">
<div class="square pull-left ui-draggable ui-draggable-handle">
<img class="Width_40" src="Allbill.png" alt="">
<span class="fa fa-heart fav-link FontSize-18" title="" data-original-title="Add to My Favorites"></span>
</div>
<a href="/customer/customerbilldetails">
<h4>
Bill Listing
</h4>
<p>
Report listing bill details.
</p>
</a>
I am using a tag. Inside the tag having the all elements,
when i right click mouse not show the open in new tab menu... how can i resolve this ...please anyone help.
The "Open New Tab" an other similar options only appear for links (<a>
). You must place everything in an <a>
. Technically, it will break the "No block elements inside inline elements" rule. However, you can style <a>
to have display:block
so it acts like a <div>
.
A similar situation here: A clickable <li> using an <a> tag - no JS to be used. Is it legal HTML?
这篇关于当我右键单击鼠标时不显示在新标签菜单中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!