Chrome未显示按钮和文本框css功能 [英] Chrome not showing button and textbox css features

查看:63
本文介绍了Chrome未显示按钮和文本框css功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我正在设计Visual Studio 2013中的网上商店。我刚开始时正在尝试实现搜索功能。首先,我在我的页面上放了一个文本框和一个按钮。它们在css文件中描述的功能未在Chrome中显示。我有几个
其他具有不同属性的div,它们显示正确。只有按钮和文本框有问题。贝娄,我会放一段代码,这样你就可以看得更清楚了:


< div id = "巴">&NBSP; &NBSP; &NBSP; 
 < div id =" cautare">  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;
< asp:TextBox ID =" textCautare" RUNAT = QUOT;服务器" >< / ASP:文本框>&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;
< asp:Button ID =" butonCautare" RUNAT = QUOT;服务器"文本= [搜寻" &NBSP; />&NBSP; &NBSP; &NBSP; &NBSP;
< / div>
< / div>

以下是两者的css ID:


#butonCautare

{

  &NBSP; border-style:none;

  &NBSP; background-color:black;

  &NBSP;宽度:75px;

  &NBSP;身高:40px;

  &NBSP; text-align:center;

  &NBSP; font-family:Verdana;

  &NBSP;颜色:灰色;

  &NBSP; margin-bottom:auto;

  &NBSP; margin-top:auto;

  &NBSP;保证金权利:10px;

  &NBSP; text-decoration:none;

}



#textCautare

{

&NBSP; &NBSP; background-color:灰色;

  &NBSP;身高:40px;

  &NBSP; border:none;

}


" bara"是一个黑色的div,作为其他东西的背景,和"cautare"。帽子是浮动的唯一特征。


我是否必须使用代码而不是颜色名称或什么?





解决方案

请在ASP.NET论坛中发布与ASP.NET相关的问题:
http://forums.asp.net

Hello!

I'm designing a webshop in Visual Studio 2013. I'm at the very beginning and i was trying to implement a search function. Firstly, i've put on my page a textbox and a button. Their features, described in a css file, aren't showed in Chrome. I have a few other divs with different properties, which are displayed correctly. Only the button and text boxhave problems. Bellow, i'l put a piece of the code, so you can see better:

<div id="bara">      
    <div id="cautare">                   
      <asp:TextBox ID="textCautare" runat="server" ></asp:TextBox>                   
      <asp:Button ID="butonCautare" runat="server" Text="Search"  />        
    </div>
</div>

And here are the css id's for both of them:

#butonCautare
{
    border-style: none;
    background-color: black;
    width: 75px;
    height: 40px;
    text-align: center;
    font-family: Verdana;
    color: gray;
    margin-bottom: auto;
    margin-top: auto;
    margin-right: 10px;
    text-decoration: none;
}

#textCautare
{
    background-color: gray;
    height: 40px;
    border: none;
}

"bara" is a black div, as background for other stuff, and "cautare" hat the only feature of floating to the rignt.

Do i have to use codes instead of names of colors or what?

解决方案

Please post ASP.NET related questions in the ASP.NET forums: http://forums.asp.net


这篇关于Chrome未显示按钮和文本框css功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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