Html 更改嵌入对象的字体大小

Html 更改嵌入对象的字体大小,html,dreamweaver,Html,Dreamweaver,我有一个嵌入文本文件的网页。文本文件名为“Broadcast.txt”,它的顶行有.LOG,以便在每次打开时输入时间戳。除此之外,它没有其他特殊功能。我找不到如何更改嵌入对象的显示字体。我在Dreamweaver中找到了任何可以让我们显示更大字体的设置,但都没有用。下面是我的一段代码:我尝试将字体更改为42pt,但仍然有效。我尝试在CSS中更改设置,但仍然不会影响对显示的小字体的更改。有什么想法吗 <div class="container"> <div class="he

我有一个嵌入文本文件的网页。文本文件名为“Broadcast.txt”,它的顶行有.LOG,以便在每次打开时输入时间戳。除此之外,它没有其他特殊功能。我找不到如何更改嵌入对象的显示字体。我在Dreamweaver中找到了任何可以让我们显示更大字体的设置,但都没有用。下面是我的一段代码:我尝试将字体更改为42pt,但仍然有效。我尝试在CSS中更改设置,但仍然不会影响对显示的小字体的更改。有什么想法吗

<div class="container">
  <div class="header"><a href="#"><img src="" alt="Insert Logo Here" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background: #C6D580; display:block;" /></a> 
    <!-- end .header --></div>
  <div class="content">
    <h1>&nbsp;</h1>
<h2>&nbsp;</h2>
    <p>  <OBJECT DATA="Broadcast.txt" TYPE="text/html" WIDTH="600" HEIGHT="400" ALIGN="bottom" STYLE="width:96%;margin:2%;">
        <EMBED SRC="U:\Web Pages\Web Templates\greeny_blu\Broadcast.txt" WIDTH="600" HEIGHT="400" ALIGN="bottom"></EMBED>
      </OBJECT> </p>
    <p>&nbsp;</p>
  <!-- end .content --></div>



好的,这样做怎么样?我正在读它通过JS,它是在一个框架现在。我仍然无法分离字体。以下是我所拥有的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <!-- TemplateBeginEditable name="doctitle" -->
  <title>ISC Impact Summary</title>
  <!-- TemplateEndEditable -->
  <META HTTP-EQUIV="REFRESH" CONTENT="10"> <!--
  This is the automatic refresh setting for this web page. It is in seconds. 
  -->
  <html>  
  <style type="text/css">
  body {
    background-color: #06F;
  }
  .Style1 {
    font-family: Calibri;
    font-size: 24em;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    background-color: #C0C0C0;
}
  body,td,th {
    color: #CF0;
}
  </style>
  <head>  
  <script type="text/javascript">   
  function init(){      
  var extText = window.frames[0].document.getElementsByTagName("HTML")[0].outerHTML; 
  document.getElementById("nMessage").innerText = extText; }
  </script>
  <!-- TemplateBeginEditable name="head" -->
  <!-- TemplateEndEditable -->
  </head>  
  <body>
  <div>
    <div align="center">
      <h2>ISC Critical Alert Summary</h2>
    </div>
  </div>


   <div>
  </div>
  <div align="center" style="font-size:42;"><!-- TemplateBeginEditable name="EditRegion1" -->
  <iframe src="Broadcast.txt" width="96%" marginwidth="2%" height="400" marginheight="2%" align="middle"     scrolling="Yes" class="Style1" id="messageTxt" style="font-size:42pt" >ISC Critical status</iframe>
    <!-- TemplateEndEditable -->
  </div>   </body>  
</html>

ISC影响摘要
身体{
背景色:#06F;
}
.Style1{
字体系列:Calibri;
字号:24em;
字体风格:普通;
字体大小:正常;
字体变体:正常;
背景色:#C0;
}
正文,td,th{
颜色:#CF0;
}
函数init(){
var extText=window.frames[0]。document.getElementsByTagName(“HTML”)[0]。outerHTML;
document.getElementById(“nMessage”).innerText=extText;}
ISC严重警报摘要
ISC临界状态

您不能从“主”html更改任何参数。浏览器将iFrame和嵌入文档与父级隔离

您可以通过javascript加载文本,或者使用html而不是txt


技术细节:)

t、 txt-是包含文本的文件。您可以为它设置完整的url,也可以将其放置在此页面附近,并仅设置其名称

    <!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="utf-8">
    <title>ISC Impact Summary</title>
    <style type="text/css">
        .b-box_with_grand_text{
            font-size: 42px;
        }
    </style>
    <!--copy this block. jQuery is get from google servers-->
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript">
        // this possible write on clean JS
        $(document).ready(function(){
            $.get('t.txt', function(data) {
                // #echo_file = id from div
                $('#echo_file').html(data);
                alert('Load was performed.');
            });
        })
    </script>
    <!--end copy-->
</head>
<body>
<!--in this block txt file content will be posted. 
Just copy id in place where you want place text-->
<div id="echo_file" class="b-box_with_grand_text"></div>
</body>
</html>

ISC影响摘要
.b-box_和_-grand_文本{
字体大小:42px;
}
//这可能是在干净的JS上写的
$(文档).ready(函数(){
$.get('t.txt',函数(数据){
//#echo_file=来自div的id
$('#echo_file').html(数据);
警报(“已执行加载”);
});
})

这是可行的,但它会加载昂贵的库jQuery

好的,那么这样做怎么样。我正在通过JS阅读它,现在它在一个框架中。我仍然无法分离字体。以下是我现在所做的:很抱歉给您带来不便,但我的意思是用JS阅读它,并将其放入div(span或etc)中,并提供所需的格式。我对我不能做的事情有两点意见,有没有人对我如何在技术细节方面完成我试图完成的事情有任何建议?技术细节看起来是我可以使用的答案,但是,当保存为html页面时,它在Dreamweaver中不起作用。这是否需要安装jQuery?jQuery是从google服务器下载的,所以您不需要下载它。