【发布时间】:2016-08-06 15:31:40
【问题描述】:
我需要通过单击将文本____(一个间隙)来回交换到Word。我不想有按钮。用户应该只需要点击间隙的位置。
我看到 this page 准确地描述了我需要的东西,尤其是 CSS-Only 方式,但是当我在 TryIt 编辑器上尝试时,它或 jQuery-Way 都不起作用。
这是 CSS 方式:
</style>
#example {
position: relative;
}
#example-checkbox {
display: none;
}
#example-checkbox:checked + #example:after {
content: "Hide";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: white;
}
</style>
<input id="example-checkbox" type="checkbox">
<label for="example" id="example">Show</label>
【问题讨论】:
-
问题的
htmlhtml的文本""____""在哪里? -
哦,给定的代码是从链接中复制的。应该换成
Show
标签: javascript jquery html css text