父页面怎么操作通过window.open打开的子页面的dom对象

如题所述

父页面通过window.open打开的子页面的dom对象文本属性
1、word-spacing:normal|length
2、letter-spacing:normal|length
3、text-decoration:none|underline|overline|line-through|blink
4、vertical-align:baseline|sub|super|top|text-top|middle|bottom|text-bottom|percentage
这个属性用来对齐图片效果特别好。如image{vertical-align:baseline}
5、text-transform:capitalize|uppercase|lowercase|none
capitalize:每个单词的第一个字母大写。
uppercase:所有字都大写。
lowercase:所有字都小写。
6、text-align:left|right|center|justify
7、text-indent:length|percentage
适用于块级元素,定义文本首行的缩进方式。如p{text-indent:1cm}
8、line-height:normal|number|length|percentage

newWin = window.open("B.html", "_blank", "")
newWin.onload = function() { //子页面加载完再获取元素
var dom = newWin.document.getElementById(‘ID’);
}
温馨提示:内容为网友见解,仅供参考
第1个回答  2017-03-20
newWin = window.open("B.html", "_blank", "")
newWin.onload = function() { //子页面加载完再获取元素
var dom = newWin.document.getElementById(‘ID’);
}
相似回答