问题描述
我正在尝试在特定位置放置一个复选框列表。 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 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>
<br />
<br />
<br />
<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 />
<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 (将#修改为@)