function bigText(strSelected){//调execCommond};

解决方案 »

  1.   

    用css实现,document.getElementById("div1").className="big1";
      

  2.   


    <body  >
    <p onmouseover="this.style.zoom ='180%'" onmouseout="this.style.zoom='normal'">是一段文字</p>
    </body>
      

  3.   

    楼上的在Ie可以,但是在Maxthon或者GreenBrowser就不行了
      

  4.   

    <!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"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
    <title>无标题文档 </title> 
    </head> <body onmouseup='alert(document.selection.createRange().pasteHTML("<h1>"+document.selection.createRange().htmlText+"</h1>"));'> 
    dsfasdfalskdjflaksdjfl;aksdjf</body> 
    </html> 
      

  5.   

    <body onmouseup='document.selection.createRange().pasteHTML(" <font size=50>"+document.selection.createRange().htmlText+" 
    </font>");'>  右键恢复 不会