本文介绍了关于IE和Mozilla Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<iewc:TreeView ID="tvMenuTree" Style="z-index: 105; left: 10px; position: absolute;
top: 5px" TabIndex="-1" runat="server" Width="417px" Height="367px" ImageUrl="Images/leaf.jpg"
BorderStyle="None" BorderWidth="1px" BorderColor="SteelBlue" Target="_self" Indent="20"
DefaultStyle="font-family:Arial;font-size:8pt;line-height:16pt;" HoverStyle="text-decoration:underline;"
ShowPlus="False" ShowLines="False" ShowToolTip="False">
<iewc:TreeNode ImageUrl="Images/Help.bmp" Text="Help" ID="Help" Target="Help" ></iewc:TreeNode>
<iewc:TreeNode ImageUrl="Images/fldrc.jpg" Text="Update and Display" Expanded="True" ExpandedImageUrl="Images/fldro.jpg">
<iewc:TreeNode NavigateUrl="Domains.aspx?Panel=PanelList" Text="Domains" Target="Domains"></iewc:TreeNode>
<iewc:TreeNode NavigateUrl="Sources.aspx?Panel=PanelList" Text="Sources" Expanded="True" Target="Sources"></iewc:TreeNode>
<iewc:TreeNode NavigateUrl="Terms.aspx?Panel=PanelFind" Text="Terms" Target="Terms"></iewc:TreeNode>
<iewc:TreeNode NavigateUrl="TermsSearch.htm" Text="Search for Terms" Target="_top"></iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeView>
如果我在Internet Explorer浏览器(IE版本-8.0.6001.18702)中打开应用程序,它将在下一行中显示如下
"Help Update and Display Domains Sources Terms Search for Terms
"
但是,与浏览器中的同一应用程序Mozilla Firefox(版本3.6.13)相同,它将显示如下
If I open my application in Browser, Internet Explorer(IE Version - 8.0.6001.18702) it will display as below in a single line
"Help Update and Display Domains Sources Terms Search for Terms
"
But the same application in Browser, Mozilla Firefox(Version 3.6.13) it willl display as below
"Help<br />
Update and Display<br />
Domains<br />
Sources<br />
Terms<br />
Search for Terms"
HTML视图
Html View
<!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><title>
</title></head>
<body>
<form name="form1" method="post" action="Default.aspx" id="form1">
<div>
<input type="hidden" name="__tvMenuTree_State__" id="__tvMenuTree_State__" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTk3NTY5NDQyNg9kFgICAw9kFgICAQ8UKwAGDxYCHhFTZWxlY3RlZE5vZGVJbmRleAUBMGRkZGRkFCsAAmQUKwACFgFmFgEUKwACPCsABAEAFgIeCFNlbGVjdGVkZ2RkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQp0dk1lbnVUcmVlwapkS8lSy9kBxiaCLs+IpgHvb3g=" />
</div>
<div>
<?XML:NAMESPACE PREFIX=TVNS />
<?IMPORT NAMESPACE=TVNS IMPLEMENTATION="/webctrl_client/1_0/treeview.htc" />
<tvns:treeview id="tvMenuTree" tabindex="-1" defaultStyle="font-family:Arial;font-size:8pt;line-height:16pt;" hoverStyle="text-decoration:underline;" imageUrl="Images/leaf.jpg" target="_self" selectedNodeIndex="0" HelperID="__tvMenuTree_State__" systemImagesPath="/webctrl_client/1_0/treeimages/" showLines="false" indent="20" showPlus="false" showToolTip="false" selectExpands="true" onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)" oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)" style="display:inline-block;border-color:SteelBlue;border-width:1px;border-style:None;height:367px;width:417px;z-index: 105; left: 10px; position: absolute;
top: 5px">
<tvns:treenode Selected="true" ImageUrl="Images/Help.bmp" Target="Help" ID="Help">
Help
</tvns:treenode><tvns:treenode Expanded="True" ImageUrl="Images/fldrc.jpg" ExpandedImageUrl="Images/fldro.jpg">
Update and Display<tvns:treenode NavigateUrl="Domains.aspx?Panel=PanelList" Target="Domains">
Domains
</tvns:treenode><tvns:treenode Expanded="True" NavigateUrl="Sources.aspx?Panel=PanelList" Target="Sources">
Sources
</tvns:treenode><tvns:treenode NavigateUrl="Terms.aspx?Panel=PanelFind" Target="Terms">
Terms
</tvns:treenode><tvns:treenode NavigateUrl="TermsSearch.htm" Target="_top">
Search for Terms
</tvns:treenode>
</tvns:treenode>
</tvns:treeview>
</div>
</form>
</body>
</html>
为什么会这样?您能帮我解决这个问题吗?
Why is it so?can you help me to solve this?
推荐答案
这篇关于关于IE和Mozilla Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!