我有一个功能,可以改变tinymce编辑器的背景,但我想重复一遍墙纸,或者不重复。类似于CSS中的background-repeat: repeat;的东西,我该怎么做呢?以下是功能:
function SettinymceImage(bg_image) {
var t = tinyMCE.get(0);
t.getBody().style.backgroundImage = 'url(https://my_path_to_wallpapers/'+bg_image+')';
}发布于 2015-05-11 08:37:06
你试过这个吗?
function SettinymceImage(bg_image) {
var t = tinyMCE.get(0);
t.getBody().style.backgroundImage = 'url(https://my_path_to_wallpapers/'+bg_image+')';
t.getBody().style.backgroundRepeat = "repeat";
}https://stackoverflow.com/questions/30162853
复制相似问题