css在设计视图中工作。但不是在运行时? [英] css work in design view.but not at run time?
本文介绍了css在设计视图中工作。但不是在运行时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
复选框里面的字段集如下所示
Hi,
checkbox inside a fieldset table as below
<%@ Page Title="" Language="C#" MasterPageFile="~/Inner.Master" AutoEventWireup="true"
CodeBehind="Permission.aspx.cs" Inherits="Etranscribe.Contents.USERS.ADMIN.Permission" %>
<%@ Register Src="~/Contents/UserControls/Header.ascx" TagName="HeaderControl"
TagPrefix="uc1" %>
<%@ Register Src="~/Contents/UserControls/Footer.ascx" TagName="FooterControl"
TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.chkChoice input
{
margin-right: 30px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<fieldset>
<legend>Fax </legend>
<table border="0" width="100%">
<tr>
<td>
<asp:CheckBox ID="ChkBoxFaxSearch" runat="server" CssClass="chkChoice" Text="Fax Search" onClick="SetUserTypeCheckBoxValues(this)" />
</td>
</tr>
</table>
</fieldset>
</asp:Content>
复选框和文本之间的空格可以在设计视图中看到,但不是在运行时间。如何解决这个问题?
i通过清除缓存来检查。但是没有工作
谢谢。
space between checkbox and text can see in design view, but not in run time.how to solve this?
i checked by clear the cache.but not working
Thanks.
推荐答案
你可以添加& nbsp;在他们之间。这是一个不间断的空间,会让空间出现。在网页中,设计视图中的空格不一定是html中的空格,因此当您需要空格时,您可以使用& nbsp;
You can add in between them. It is a non breaking space and will cause a space to show up. In the web, spaces in design view are not necessarily spaces in html so when you need a space you can use
这篇关于css在设计视图中工作。但不是在运行时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文