I need to set all of the content in a certain <div>
to open to another tab ( target="_blank"
).
I don t really care how this is solved, you can use JS, CSS, HTML, classes, IDs, et cetera.
I tried using <base target="_blank">
but it covered everything no matter what rather than just a certain area.
Example:
<a href="example.html"> <div> <base target="_blank"> [CONTENT] </div>
I thought that example.html would be opened in the same tab, but its target is set to "_blank"
as well.
我也尝试做以下工作:<div Target="_blank”>
,但该编号没有产生任何效果,而是作为正常的<代码><div>处理。