neo1989021
جمعه 02 اردیبهشت 1390, 11:21 صبح
سلام دوستان. من طول و ارتفاع سایتم یه عدد ثابتی داره برای همین مجبور شدم به div کی دارم scroll بدم تا اگه نوشته هام زیاد شد، scroll بگیره.
حالا مشکلم اینه که به شکل افقی هم اسکرول گرفته با اینکه هیچ نوشته ای از حد نصاب افقی خارج نشده.
کد html سایتم:
<%
@ Page Language="C#" MasterPageFile="~/Golnouri.master" AutoEventWireup="true" CodeFile="About.aspx.cs" Inherits="About" Title=" | " %>
<
asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</
asp:Content>
<
asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="DivOrg" dir="rtl">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<br />
...
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<b> </b><br />
: <br />
<asp:LinkButton ID="LinkButton9" runat="server"> </asp:LinkButton>
<br />
:
#C .
<br />
<br />
<b> </b><br />
1383
<br />
vbnvbnvnv
<br />
bn
<br />
vbn
<br />
v
<br />
bn
<br />
vbn
<br />
v
<br />
bn
<br />
v
<br />
bnvnvnbvbnvbnvbnvn
<br />
vbnvbnvbn
<br />
vbnvbnvbnvbnv
<br />
vbnvbnvbnvbn
<br />
<br />
</ContentTemplate>
</asp:UpdatePanel>
</
div>
</
asp:Content>
کد css
.DivOrg a:link{color:#00F; text-decoration: none;}
.DivOrg a:visited{text-decoration: none; color:#00F;}
.DivOrg a:hover{text-decoration: none; color:#F00;}
.DivOrg a:active{text-decoration: none; color:#00F;}
.DivOrg {line-height:16px;}
.DivOrg
{
cursor:default;
height:300px;
overflow:scroll;
width:450px;
}
حالا مشکلم اینه که به شکل افقی هم اسکرول گرفته با اینکه هیچ نوشته ای از حد نصاب افقی خارج نشده.
کد html سایتم:
<%
@ Page Language="C#" MasterPageFile="~/Golnouri.master" AutoEventWireup="true" CodeFile="About.aspx.cs" Inherits="About" Title=" | " %>
<
asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</
asp:Content>
<
asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="DivOrg" dir="rtl">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<br />
...
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<br />
<b> </b><br />
: <br />
<asp:LinkButton ID="LinkButton9" runat="server"> </asp:LinkButton>
<br />
:
#C .
<br />
<br />
<b> </b><br />
1383
<br />
vbnvbnvnv
<br />
bn
<br />
vbn
<br />
v
<br />
bn
<br />
vbn
<br />
v
<br />
bn
<br />
v
<br />
bnvnvnbvbnvbnvbnvn
<br />
vbnvbnvbn
<br />
vbnvbnvbnvbnv
<br />
vbnvbnvbnvbn
<br />
<br />
</ContentTemplate>
</asp:UpdatePanel>
</
div>
</
asp:Content>
کد css
.DivOrg a:link{color:#00F; text-decoration: none;}
.DivOrg a:visited{text-decoration: none; color:#00F;}
.DivOrg a:hover{text-decoration: none; color:#F00;}
.DivOrg a:active{text-decoration: none; color:#00F;}
.DivOrg {line-height:16px;}
.DivOrg
{
cursor:default;
height:300px;
overflow:scroll;
width:450px;
}