需要一些HTML代码的帮助 [英] Need some help with this HTML code

查看:69
本文介绍了需要一些HTML代码的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在复选框列表和标签上遇到了一个小问题。



我需要标签(显示复选框列表的错误信息)在复选框列表的旁边,我尝试了几种方法,包括放置一个新的html表,span标签但这没有帮助。



这里是我的HTML,任何帮助都将不胜感激。



谢谢



 <   td     width   =  100px >  
促销国家/地区:< ; br / < span class =code-keyword>>
< br / >
< br / >
< / td >
< td < span class =code-attribute> align
= left >
< asp:CheckBoxList < span class =code-attribute> ID = cblCountryAdd runat = server AutoPostBack = True

< span class =code-attribute> DataSourceID = odsCountries DataTextField = 名称 DataV alueField = Country_Code

onselectedindexchanged = cblCountryAdd_SelectedIndexChanged >
< / asp:CheckBoxList >
< asp:Label ID = lblCountryAdd runat = server ForeColor = 红色 > < / asp:标签 >
< / td >

解决方案

添加另一个td并将标签放在该列中,您可以相应地调整宽度。

 <   td  > > 
促销国家:
< / td >
< td >
< asp:CheckBoxList ID = cblCountryAdd runat = server AutoPostBack = True

DataSourceID = odsCountries DataTextField = 名称 DataValueField = Country_Code

< span class =code-attribute>
onselectedindexchanged = cblCountryAdd_SelectedIndexChanged >
< / asp :CheckBoxList >

< / td >
< td >
< < span class =code-leadattribute> asp:Label ID = lblCountryAdd runat = server ForeColor = 红色 > < / asp:Label >
< / td >


Hi,

I am having a small issue with a checkboxlist and a label.

I need the label (displays error message for the checkboxlist) to be next to the checkboxlist, I have tried a few ways including putting a new html table, span tags but this has not helped.

here is my html, any help would be appreciated.

thanks

<td width="100px">
    Promo Country:<br />
    <br />
    <br />
</td>
<td align="left">
    <asp:CheckBoxList ID="cblCountryAdd"  runat="server" AutoPostBack="True"

        DataSourceID="odsCountries" DataTextField="Name" DataValueField="Country_Code"

        onselectedindexchanged="cblCountryAdd_SelectedIndexChanged">
    </asp:CheckBoxList>
    <asp:Label ID="lblCountryAdd" runat="server"  ForeColor="Red"></asp:Label>
</td>

解决方案

Add another td and put your label in that column, you can adjust the width accordingly.

<td>>
    Promo Country:
</td>
<td >
    <asp:CheckBoxList ID="cblCountryAdd"  runat="server" AutoPostBack="True"

        DataSourceID="odsCountries" DataTextField="Name" DataValueField="Country_Code"

        onselectedindexchanged="cblCountryAdd_SelectedIndexChanged">
    </asp:CheckBoxList>
    
</td>
<td>
    <asp:Label ID="lblCountryAdd" runat="server"  ForeColor="Red"></asp:Label>
</td>


这篇关于需要一些HTML代码的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆