javascript - Why is IE ignoring width, height on inline link tag? -


pre-req:

<a href="#a" onclick="mywindow=window.open(\'https://<server ip>/clickherenotes.html#<div name aaa>\',\'mywindow\',width=600, height=300); return false;">click here.</a>

by clicking on link above, embedded html page opened target div name aaa displayed.

below toggle function have used in html script tag:

div {     display: none; } div:target {     display: block; } 

problem: when link above clicked in chrome opens popup window, while displaying whole div html content

when try open link in ie 11, pop window appears window size not wrap around html content of div in concern. there no scroll bar.

things have tried far, did not work:

  1. adding scrollbar=yes
  2. adding min-height
  3. adding % in width , height.
  4. removing width , height.
  5. adding char after href=#.

what property should use display pop window complete div html content?

try instead

add attribute overflow:scroll div


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -