我有div作为页面上的水印。
div {position: fixed;}
但是在div覆盖的区域中,div下面的按钮和链接变得不可点击。要单击元素,请滚动并移动DIV。
我甚至尝试过使用body元素和水印div的z-index属性。
body z-index to 2
watermark z-index to 1
那是行不通的。
我该如何解决这个问题,这样才能点击水印div下面的元素。
我正在寻找一个解决方案,使文字中的文字可点击,我想把文本分成一系列的单词,并为每个单词创建一个btn .但是这个解决方案性能不好..。有人知道吗?案文如下:
const paragraph = 'Emma Woodhouse, handsome, clever, and rich, with a comfortable home and happy disposition, seemed to unite some of the best blessings of existence; and had lived nearly twenty-one years in the world
我正在尝试连续点击在线游戏的一些按钮。看一看game可能会有所帮助。以下是与按钮相关的主要html的一部分: <div class="grid x5" id="grid">
<div style="opacity: 1;"><span class="box" style="z-index:92"></span>1</div> #⬅Each of this lines are a button.
<div style="opa
我试图使用带有div的position: fixed创建一些静态内容,然后允许带有background-color的实心div滚动并隐藏下面的静态文本。
HTML:
<div class="container">
<div class="static-background">
<p>Why can I see this through the yellow div?</p>
<p> <a href="#">this should be
我有一个有两层的应用程序:
Layer One (z-index:1, visible)由4种分隔布局中的4种标签( A, B, C, D )组成(从组件L1导入)
Layer 2 (z-index:2, hidden)由4种分隔布局中的4种标签( E, F, G, H )组成(从组件L2导入)
通过点击A:Layer ,将显示两个。
通过点击E:Layer ,将隐藏两个。
我想:
禁用标签( A, B, C, D ),而层二是可见。
在每个标签上将isUserInteractionEnabled设置为false似乎会有所帮助,但我希望找到一种方法,使整个层一次一次地去活动,而不是逐个地去标记
每次我尝试在网页中使用z-index来改变重叠div的堆叠顺序时,我似乎遇到了一个问题:被强制降低的div对鼠标事件没有反应。
在我目前的情况下,我有:
<div class="leftcolumn">
<div class="leftbar"></div> <!-- a 95px wide bar on the left -->
...
<h3>header</h3> <!-- a little header sitting inside the leftbar
...
</d