如何在 webforms c#/HTML 上移动复选框列表的位置

问题描述

我正在尝试在特定位置放置一个复选框列表。 what i need

我需要那个复选框列表在左边对齐,但我不能移动它 这就是我所拥有的 what i have

希望你能帮助我!

这是HTML代码

<asp:CheckBoxList ID="cblAccesorios" runat="server" TextAlign="Right">              
            <asp:ListItem Value="2000,50">Monitor LCD</asp:ListItem>
            <asp:ListItem Value="550,50">HD 500 GB</asp:ListItem>
            <asp:ListItem Value="1200">Grabador DVD</asp:ListItem>
        </asp:CheckBoxList>

编辑 这是整个 HTML 代码

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ejercicio5.aspx.cs" Inherits="Tp2Prog.Ejercicio5" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<Meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="auto-style1">
            <asp:Label ID="lbl1" runat="server" Font-Bold="True" Font-Size="X-Large" Text="Elija su configuración"></asp:Label>
            <br />
            <br />
<strong>Seleccione cantidad de memoria&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Seleccione accesorios</strong><br />

            <asp:DropDownList ID="ddlRam" runat="server" Height="21px" Width="65px">
                <asp:ListItem Value="200">2 GB</asp:ListItem>
                <asp:ListItem Value="375">4 GB</asp:ListItem>
                <asp:ListItem Value="500">6 GB</asp:ListItem>
            </asp:DropDownList>
&nbsp;
            <br />

            <br />
            <br />
            &nbsp;<asp:CheckBoxList ID="cblAccesorios" runat="server">              
                <asp:ListItem Value="2000,50">Monitor LCD</asp:ListItem>
                <asp:ListItem Value="550,50">HD 500 GB</asp:ListItem>
                <asp:ListItem Value="1200">Grabador DVD</asp:ListItem>
            </asp:CheckBoxList>
            <br />
            &nbsp;&nbsp;
   
            <div>
                </div>
            <br />
 
            <br />
           
            <asp:Button ID="btnPrecio" runat="server" OnClick="btnPrecio_Click" Text="Calcular Precio"/>
            <br />
            <asp:Label ID="lblPrecio" runat="server" Font-Bold="True" Font-Size="XX-Large"></asp:Label>
        </div>
    </form>
</body>
</html>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...