| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1663 人关注过本帖
标题:求助!用JS做的下拉菜单中有空格,文字就会折行,求解决办法!急!!在线 ...
取消只看楼主 加入收藏
weihaooo
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-7-24
收藏
 问题点数:0 回复次数:2 
求助!用JS做的下拉菜单中有空格,文字就会折行,求解决办法!急!!在线等!谢谢!
" border="0" />
看下拉菜单中的,每行文字都是因为有空格,所以折行了,有没有方法既保留空格又让文字在一行显示的呢?
下面是JS代码:
  // JavaScript Document

function mmLoadMenus() {
  if (window.mm_menu_0323235104_0) return;
  
/*
window.mm_menu_0323235104_0_1 = new Menu("FAQ",170,19,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",3,0,1000,0,0,true,true,true,0,false,false);
    mm_menu_0323235104_0_1.addMenuItem("FAQ of IVCM & PhonePilot","location='http://www. of IVCM & PhonePilot.htm'");
    mm_menu_0323235104_0_1.addMenuItem("FAQ of UltraIM & UltraIM Pro","location='http://www. of UltraIM & UltraIM Pro.htm'");
     mm_menu_0323235104_0_1.hideOnMouseOut=true;
     mm_menu_0323235104_0_1.menuBorder=0;
     mm_menu_0323235104_0_1.menuLiteBgColor='#ffffff';
     mm_menu_0323235104_0_1.menuBorderBgColor='#ffffff';
     mm_menu_0323235104_0_1.bgColor='#ffffff';
*/


  window.mm_menu_0323235104_0 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
  mm_menu_0323235104_0.addMenuItem("document","location='http://www.'");
  mm_menu_0323235104_0.addMenuItem("FAQ","location='http://www.'");
  mm_menu_0323235104_0.addMenuItem("Forum","location='http://forum.'");
  mm_menu_0323235104_0.addMenuItem("RequestSupport","location='http://www.'");

   mm_menu_0323235104_0.hideOnMouseOut=true;
   mm_menu_0323235104_0.menuBorder=0;
   mm_menu_0323235104_0.menuLiteBgColor='#ffffff';
   mm_menu_0323235104_0.menuBorderBgColor='#ffffff';
   mm_menu_0323235104_0.bgColor='#ffffff';

  window.mm_menu_0323234759_1 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
  mm_menu_0323234759_1.addMenuItem("Phone Alone for S60 3rd","location='http://www. Alone for S60 3rd.html'");
mm_menu_0323234759_1.addMenuItem("UltraIM Pro","location='http://www. Pro.htm'");
  mm_menu_0323234759_1.addMenuItem("UltraIM","location='http://www.'");
  mm_menu_0323234759_1.addMenuItem("IVCM for S60 3rd","location='http://www. for S60 3rd.htm'");
  mm_menu_0323234759_1.addMenuItem("PhonePilot for S60 3rd","location='http://www. for S60 3rd.htm'");
  mm_menu_0323234759_1.addMenuItem("IVCM for S60 2nd","location='http://www. for S60 2nd.htm'");
  mm_menu_0323234759_1.addMenuItem("PhonePilot for S60 2nd","location='http://www. for S60 2nd.htm'");
    mm_menu_0323234759_1.hideOnMouseOut=true;
   mm_menu_0323234759_1.menuBorder=0;
   mm_menu_0323234759_1.menuLiteBgColor='#ffffff';
   mm_menu_0323234759_1.menuBorderBgColor='#ffffff';
   mm_menu_0323234759_1.bgColor='#ffffff';

  window.mm_menu_0323232432_3 = new Menu("root",150,21,"Tahoma",12,"#041151","#ffffff","#DDE1ED","#919EC2","left","middle",5,0,1000,0,0,true,true,true,5,false,false);
  mm_menu_0323232432_3.addMenuItem("News","window.open('http://www.', '_self');");
  mm_menu_0323232432_3.addMenuItem("Partners","window.open('http://www.', '_self');");
  mm_menu_0323232432_3.addMenuItem("Jobs","window.open('http://www.', '_self');");
  mm_menu_0323232432_3.addMenuItem("Contact us","window.open('http://www.', '_self');");
   mm_menu_0323232432_3.hideOnMouseOut=true;
   mm_menu_0323232432_3.menuBorder=0;
   mm_menu_0323232432_3.menuLiteBgColor='#ffffff';
   mm_menu_0323232432_3.menuBorderBgColor='#ffffff';
   mm_menu_0323232432_3.bgColor='#ffffff';

  window.mm_menu_0323233947_2 = new Menu("root",170,21,"Tahoma",12,"#000000","#000000","#e2e0cb","#d2d3d8","left","middle",3,0,1000,0,0,true,true,true,0,false,false);
  mm_menu_0323233947_2.addMenuItem("FAQ of IVCM & PhonePilot","window.open('http://www. of IVCM & PhonePilot.htm', '_self');");
  mm_menu_0323233947_2.addMenuItem("FAQ of UltraIM & UltraIM Pro","window.open('http://www. of UltraIM & UltraIM Pro.htm', '_self');");
   mm_menu_0323233947_2.hideOnMouseOut=true;
   mm_menu_0323233947_2.childMenuIcon="images/arrows.gif";
   mm_menu_0323233947_2.menuBorder=0;
   mm_menu_0323233947_2.menuLiteBgColor='#ffffff';
   mm_menu_0323233947_2.menuBorderBgColor='#ffffff';
   mm_menu_0323233947_2.bgColor='#ffffff';

  mm_menu_0323232432_3.writeMenus();
}

[[it] 本帖最后由 weihaooo 于 2008-1-31 12:16 编辑 [/it]]
搜索更多相关主题的帖子: 菜单中 quot 空格 JS 文字 
2008-01-31 11:28
weihaooo
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-7-24
收藏
得分:0 
现在完整了,您再看看
2008-01-31 12:17
weihaooo
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2007-7-24
收藏
得分:0 
??
您说的重点是什么?HTML吗?
2008-01-31 12:58
快速回复:求助!用JS做的下拉菜单中有空格,文字就会折行,求解决办法!急!! ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030353 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved