ورود

View Full Version : horizontal scroll bar



yanni127
یک شنبه 24 شهریور 1387, 13:39 عصر
سلام
وقتی این کد رو اضافه و اجرا می کنم یک scroll bar افقی بزرگ پایین صفحات دارم که نمی دونم باید چطور اون رو از بین ببرم
لطفا" کمک کنید:متفکر::افسرده::اشتباه:




<table style="position: relative; left: 5px; top: -97px; width: 98%; height: 10px;" cellpadding = 0pt cellspacing = 0pt border = 0pt>

<tr>

<td rowspan="9" style="width: 100%">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>

</td>

<td style="width: 100%; height: 159px;">

<table style="position: relative; left: 0px; top: 0px" cellpadding= 0pt cellspacing = 0pt border = 0pt width = 100% height = "10">

<tr>

<td style="width: 100%; margin-bottom : 0pt; height: 11px;">

<img src="image/top.gif" style="position: relative; width: 245px;" /></td>

</tr>

<tr>

<td style="width: 100px; background-color: #dcdcdc; margin-bottom : 0pt ; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt">

<table style="position: relative; top: 8px; left: 4px" width = 100% height = "10">

<tr>

<td style="width: 100px">

<asp:DropDownList ID="DropDownList1" runat="server" Style="position: relative">

</asp:DropDownList></td>

<td style="width:100%">

<asp:TextBox ID="TextBox1" runat="server" Style="position: relative; direction: rtl;">جستجو...</asp:TextBox></td>

</tr>

<tr>

<td style="width: 100%">

</td>

<td style="width: 100%">

<asp:HyperLink ID="HyperLink1" runat="server" Style="left: 4px; position: relative">تماس با ما</asp:HyperLink></td>

</tr>

<tr>

<td style="width: 100%; height: 23px;">

</td>

<td style="width: 100%; height: 23px;">

<asp:HyperLink ID="HyperLink2" runat="server" Style="left: 4px; position: relative"

Width="139px">ارسال صفحه به دوستان</asp:HyperLink></td>

</tr>

</table>

<br />

</td>

</tr>

<tr>

<td style="width: 100%; margin-top :0pt; height: 9px;">

<img src="image/down.gif" style="position: relative; width: 245px; height: 10px;" /></td>

</tr>

</table>

mp2009
دوشنبه 25 شهریور 1387, 00:19 صبح
داداش عزیز اول اینکه از جدولها استفاده نکن. چون واقعا هم بهینه نیستند و هم سرعت رو پایین میارند.
به جاز از تگ DIV استفاده کن. البته به همراه CSS . برای جواب سوالت هم اندازا تگ های
width رو کم کن
موفق باشی