
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!-- Mirrored from www.w3school.com.cn/aspnet/prop_webcontrol_radiobuttonlist_textalign.asp by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 07:07:08 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />

<meta name="robots" content="all" />

<meta name="author" content="w3school.com.cn" />
<meta name="Copyright" content="Copyright W3school.com.cn All Rights Reserved." />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta http-equiv="imagetoolbar" content="false" />

<link rel="stylesheet" type="text/css" href="../c5.css" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />

<title>ASP.NET TextAlign 属性</title>
</head>

<body class="dotnet">
<div id="wrapper">

<div id="header">
<a href="../index-2.html" title="w3school 在线教程" style="float:left;">w3school 在线教程</a>
<div id="ad_head">
<script type="text/javascript"><!--
google_ad_client = "pub-3381531532877742";
/* 728x90, 创建于 08-12-1 */
google_ad_slot = "7423315034";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/f.txt">
</script>
</div>
</div>

<div id="navfirst">
<ul id="menu">
<li id="h"><a href="../h.html" title="HTML 系列教程">HTML 系列教程</a></li>
<li id="b"><a href="../b.html" title="浏览器脚本教程">浏览器脚本</a></li>
<li id="s"><a href="../s.html" title="服务器脚本教程">服务器脚本</a></li>
<li id="d"><a href="../d.html" title="ASP.NET 教程">ASP.NET 教程</a></li>
<li id="x"><a href="../x.html" title="XML 系列教程">XML 系列教程</a></li>
<li id="ws"><a href="../ws.html" title="Web Services 系列教程">Web Services 系列教程</a></li>
<li id="w"><a href="../w.html" title="建站手册">建站手册</a></li>
</ul>
</div>

<div id="navsecond">

<div id="course"><h2>ASP.NET 教程</h2>
<ul>
<li><a href="index.html" title="ASP.NET 教程">ASP.NET 教程</a></li>
<li><a href="aspnet.html" title="ASP.NET 简介">ASP.NET 简介</a></li>
</ul>
<h2>WP 教程</h2>
<ul>
<li><a href="webpages_intro.html" title="WebPages 简介">WebPages 简介</a></li>
<li><a href="webpages_razor.html" title="WebPages Razor">WebPages Razor</a></li>
<li><a href="webpages_layout.html" title="WebPages 布局">WebPages 布局</a></li>
<li><a href="webpages_folders.html" title="WebPages 文件夹">WebPages 文件夹</a></li>
<li><a href="webpages_global.html" title="WebPages 全局">WebPages 全局</a></li>
<li><a href="webpages_forms.html" title="WebPages 窗体">WebPages 窗体</a></li>
<li><a href="webpages_objects.html" title="WebPages 对象">WebPages 对象</a></li>
<li><a href="webpages_files.html" title="WebPages 文件">WebPages 文件</a></li>
<li><a href="webpages_helpers.html" title="WebPages 帮助器">WebPages 帮助器</a></li>
<li><a href="webpages_webgrid.html" title="WebPages WebGrid">WebPages WebGrid</a></li>
<li><a href="webpages_chart.html" title="WebPages 图表">WebPages 图表</a></li>
<li><a href="webpages_email.html" title="WebPages 电邮">WebPages 电邮</a></li>
<li><a href="webpages_php.html" title="WebPages PHP">WebPages PHP</a></li>
<li><a href="webpages_publish.html" title="WebPages 发布">WebPages 发布</a></li>
<li><a href="webpages_examples.html" title="WebPages 实例">WebPages 实例</a></li>
</ul>
<h2>WP 参考手册</h2>
<ul>
<li><a href="webpages_ref_classes.html" title="WebPages 类">WebPages 类</a></li>
<li><a href="webpages_ref_websecurity.asp" title="WebPages 安全">WebPages 安全</a></li>
<li><a href="webpages_ref_database.asp" title="WebPages 数据库">WebPages 数据库</a></li>
<li><a href="webpages_ref_webmail.html" title="WebPages WebMail">WebPages WebMail</a></li>
<li><a href="webpages_ref_helpers.asp" title="WebPages 助手">WebPages 助手</a></li>
</ul>
<h2>ASP.NET Razor</h2>
<ul>
<li><a href="razor_intro.html" title="Razor 简介">Razor 简介</a></li>
<li><a href="razor_syntax.html" title="Razor 语法">Razor 语法</a></li>
<li><a href="razor_cs_variables.html" title="Razor C# 变量">Razor C# 变量</a></li>
<li><a href="razor_cs_loops.html" title="Razor C# 循环">Razor C# 循环</a></li>
<li><a href="razor_cs_logic.html" title="Razor 外边距合并">Razor C# 逻辑</a></li>
<li><a href="razor_vb_variables.html" title="Razor VB 变量">Razor VB 变量</a></li>
<li><a href="razor_vb_loops.html" title="Razor VB 循环">Razor VB 循环</a></li>
<li><a href="razor_vb_logic.html" title="Razor VB 逻辑">Razor VB 逻辑</a></li>
</ul>
<h2>ASP.NET MVC</h2>
<ul>
<li><a href="mvc_intro.html" title="MVC 简介">MVC 简介</a></li>
<li><a href="mvc_app.html" title="MVC 应用程序">MVC 应用程序</a></li>
<li><a href="mvc_folders.html" title="MVC 文件夹">MVC 文件夹</a></li>
<li><a href="mvc_layout.html" title="MVC 布局">MVC 布局</a></li>
<li><a href="mvc_controllers.html" title="MVC 控制器">MVC 控制器</a></li>
<li><a href="mvc_views.asp" title="MVC 视图">MVC 视图</a></li>
<li><a href="mvc_database.html" title="MVC 数据库">MVC 数据库</a></li>
<li><a href="mvc_models.html" title="MVC 模型">MVC 模型</a></li>
<li><a href="mvc_security.html" title="MVC 安全">MVC 安全</a></li>
<li><a href="mvc_htmlhelpers.html" title="MVC HTML 助手">MVC HTML 助手</a></li>
<li><a href="mvc_publish.asp" title="MVC 发布">MVC 发布</a></li>
<li><a href="mvc_reference.html" title="MVC 参考手册">MVC 参考手册</a></li>
</ul>
<h2>WF 教程</h2>
<ul>
<li><a href="aspnet_intro.html" title="WebForms 简介">WebForms 简介</a></li>
<li><a href="aspnet_pages.html" title="WebForms Pages">WebForms Pages</a></li>
<li><a href="aspnet_controls.html" title="WebForms 控件">WebForms 控件</a></li>
<li><a href="aspnet_events.html" title="WebForms 事件">WebForms 事件</a></li>
<li><a href="aspnet_forms.html" title="WebForms 窗体">WebForms 窗体</a></li>
<li><a href="aspnet_viewstate.asp" title="WebForms ViewState">WebForms ViewState</a></li>
<li><a href="aspnet_textbox.asp" title="WebForms TextBox">WebForms TextBox</a></li>
<li><a href="aspnet_button.asp" title="WebForms Button">WebForms Button</a></li>
<li><a href="aspnet_databinding.html" title="WebForms Data Binding">WebForms 数据绑定</a></li>
<li><a href="aspnet_arraylist.html" title="WebForms ArrayList">WebForms ArrayList</a></li>
<li><a href="aspnet_hashtable.html" title="WebForms Hashtable">WebForms Hashtable</a></li>
<li><a href="aspnet_sortedlist.html" title="WebForms SortedList">WebForms SortedList</a></li>
<li><a href="aspnet_xml.html" title="WebForms XML 文件">WebForms XML 文件</a></li>
<li><a href="aspnet_repeater.html" title="WebForms Repeater">WebForms Repeater</a></li>
<li><a href="aspnet_datalist.html" title="WebForms DataList">WebForms DataList</a></li>
<li><a href="aspnet_dbconnection.html" title="WebForms DbConnection">WebForms 数据库连接</a></li>
<li><a href="aspnet_masterpages.html" title="WebForms Master Pages">WebForms 母版页</a></li>
<li><a href="aspnet_navigation.html" title="WebForms 导航">WebForms 导航</a></li>
<li><a href="aspnet_examples.html" title="WebForms 实例">WebForms 实例</a></li>
</ul>
<h2>WF 参考手册</h2>
<ul>
<li><a href="aspnet_refhtmlcontrols.html" title="WebForms HTML">WebForms HTML</a></li>
<li><a href="aspnet_refwebcontrols.asp" title="WebForms Controls">WebForms Controls</a></li>
<li><a href="aspnet_refvalidationcontrols.html" title="WebForms Validation">WebForms Validation</a></li>
</ul>
</div>

</div>

<div id="maincontent">

<h1>ASP.NET TextAlign 属性</h1>

<div class="backtoreference">
<p><a href="control_radiobuttonlist.html" title="ASP.NET RadioButtonList 控件">返回 ASP.NET RadioButtonList 控件参考手册</a></p>
</div>

<div>
<h2>定义和用法</h2>

<p>TextAlign 属性用于获取或设置 RadioButtonList 项目的文本的文本对齐方式。</p>

<h3>语法</h3>
<pre>&lt;asp:RadioButtonList <code>TextAlign=&quot;align&quot;</code> runat=&quot;server&quot;&gt;
<span>some content</span>
&lt;/asp:RadioButtonList &gt;</pre>

<table class="dataintable">
<tr>
<th>属性</th>
<th>描述</th>
</tr>

<tr>
<td>align</td>
<td>
<p>规定列表项的文本对齐方式。</p>

<p>可能的值：</p>
<ul>
<li>Left</li>
<li>Right （默认）</li>
</ul>
</td>
</tr>
</table>
</div>

<div>
<h2>实例</h2>

<p>下面的例子把 RadioButtonList 控件中的 TextAlign 设置为 &quot;Left&quot;：</p>

<pre>&lt;form runat=&quot;server&quot;&gt;
&lt;asp:RadioButtonList id=&quot;rb1&quot; runat=&quot;server&quot; <code>TextAlign=&quot;Left&quot;</code>&gt;

<span>Some content</span>

&lt;/asp:RadioButtonList&gt;
&lt;/form&gt;</pre>
</div>

<div class="example">
<h2>实例</h2>
<dl>
<dt>设置 RadioButtonList 控件的 TextAlign 属性</dt>
</dl>
</div>

<div class="backtoreference">
<p><a href="control_radiobuttonlist.html" title="ASP.NET RadioButtonList 控件">返回 ASP.NET RadioButtonList 控件参考手册</a></p>
</div>
</div>

<div id="sidebar">

<div id="searchui">
<form method="get" id="searchform" action="http://www.google.com.hk/search">
<p><label for="searched_content">Search:</label></p>
<p><input type="hidden" name="sitesearch" value="w3school.com.cn" /></p>
<p>
<input type="text" name="as_q" class="box"  id="searched_content" title="在此输入搜索内容。" />
<input type="submit" value="Go" class="button" title="搜索！" />
</p>
</form>
</div>

<div id="tools">
<h5 id="tools_reference"><a href="aspnet_reference.html">ASP.NET 参考手册</a></h5>
</div>

<div id="ad">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3381531532877742";
/* sidebar-160x600 */
google_ad_slot = "3772569310";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/f.txt">
</script>
</div>

</div>

<div id="footer">
<p>
W3School 提供的内容仅用于培训。我们不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。W3School 简体中文版的所有内容仅供测试，对任何法律问题及风险不承担任何责任。
</p>

<p>
当使用本站时，代表您已接受了本站的<a href="../about/about_use.html" title="关于使用">使用条款</a>和<a href="../about/about_privacy.html" title="关于隐私">隐私条款</a>。版权所有，保留一切权利。
赞助商：<a href="http://www.yktz.net/" title="上海赢科投资有限公司">上海赢科投资有限公司</a>。
<a href="http://www.miitbeian.gov.cn/">蒙ICP备06004630号</a>
</p>
</div>

</div>
</body>

<!-- Mirrored from www.w3school.com.cn/aspnet/prop_webcontrol_radiobuttonlist_textalign.asp by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 07:07:08 GMT -->
</html>