@xxvxx
....

Как изменить css во iframe?

Пробовал так
var cssLink = document.createElement("link") 
cssLink.href = "file://path/to/style.css"; 
cssLink .rel = "stylesheet"; 
cssLink .type = "text/css"; 
frames['iframe'].document.body.appendChild(cssLink);

и так
var $head = $("iframe").contents().find("head");                
$head.append($("", 
    { rel: "stylesheet", href: "file://path/to/style.css", type: "text/css" }));

но не получается=((
<iframe src="http://test/" width="100%" scrolling="no" allowtransparency="" style="overflow: visible; min-height:1000px;"></iframe>
  • Вопрос задан
  • 8311 просмотров
Решения вопроса 1
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы