Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
227 views
in Technique[技术] by (71.8m points)

javascript - Problem to add CSS in InfoBox after upgrade from 1.50 to 1.71

I just done the upgrade from 1.50 to 1.71.

I was using this code to add a css in the Iframe, but it is not working anymore.

    viewer.infoBox.frame.addEventListener('load', function () {
                    var customCssLink = viewer.infoBox.frame.contentDocument.createElement('link');
                    customCssLink.href = relativeRootUrl + '/SomePath/CSS/CesiumPopUp.css';
                    customCssLink.rel = 'stylesheet';
                    customCssLink.type = 'text/css';
                    viewer.infoBox.frame.contentDocument.head.appendChild(customCssLink);});

Have you some tips to help me?

question from:https://stackoverflow.com/questions/65881518/problem-to-add-css-in-infobox-after-upgrade-from-1-50-to-1-71

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...