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:
- adding
scrollbar=yes
- adding
min-height
- adding
%
inwidth
,height
. - removing
width
,height
. - adding
char
afterhref=#
.
what property should use display pop window complete div html content?
try instead
add attribute overflow:scroll
div
Comments
Post a Comment