我使用px让这个弹出窗口以javascript为中心。我需要该框是响应,所以我如何调整脚本,以计算百分比,而不是px。有可能吗?当前的代码允许我产生一个自动弹出,但它也有脚本中心的pop使用px。这没有反应。 var el = document.getElementById(div_id); else {el.style.display = 'none
我有一个文本,当我按下图标时,我可以read more,当按下另一个图标时,我可以read less。问题是,如何缩进顶部,以便阅读更多和阅读更少的图标,以看到他们下面的文本,并使他们(图标)在中心?图标是+、-。 <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown p