简体   繁体   English

我需要知道如何更改联系表格中的文字颜色

[英]I need to know how to change the text color in my contact form

I have a contact form and I have it set exactly the way I like it, however the text is white, so when you type in it you cant see it. 我有一个联系表格,并且按我喜欢的方式设置了它,但是文本为白色,因此当您键入时看不到它。 When you highlight it it is there so it is working, however people can't see what they are typing. 当您突出显示它时,它就可以工作了,但是人们看不到他们在打字什么。 I have it hosted here www.trutattoo.amdesigns.studio.com 我在这里托管了www.trutattoo.amdesigns.studio.com

                 and this is my CSS

                          form label,

              form .label {
          display: block;
        margin-bottom: 20px;
          }

       input,
       textarea {
     margin-top: 20px;
      font-family: 'Open Sans', sans-serif;
     font-size: 14px;
      font-weight: 800;
   font-color: #000000;
    border: 1px solid #000000;
    outline: none;
     -webkit-transition: border-color 0.2s;
     -moz-transition: border-color 0.2s;
     -ms-transition: border-color 0.2s;
     -o-transition: border-color 0.2s;
     transition: border-color 0.2s;
      }

   input[type="text"],
   textarea {
   padding: 10px;
  width: 100%;


     }

      input[type="text"]:focus,
     textarea:focus {
       border-color: #161616;
       }

           input[type="checkbox"] {
          display: none;
              }

        textarea {
         margin-top: 20px;
       height: 200px;

        }

Just change 只是改变

font-color: #000000; 字体颜色:#000000; border: 1px solid #000000; 边框:1px实线#000000;

000000 to any color you want. 000000为您想要的任何颜色。

Example change to #ff0000 is you want RED. 您想要变红的示例更改为#ff0000。

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何更改下拉联系表单插件的背景颜色 - How can I change Background Color of the Dropdown Contact Form Plugin 我需要将必需的表单字段添加到我的联系表单中,但是不确定如何做吗? - I need to add required form fields to my contact form but not sure about how to do it? 当我输入并提交内容时,如何停止输入表单以更改背景颜色和文本颜色? - How do I stop the input form to change background color and text color when I input and submit something? PHP。 错误更改文本区域颜色而无需重定向的联系表 - PHP. Contact Form on error change color of text area without redirecting 需要我的uni的html联系表单的帮助 - Need help for my html contact form for uni 我不知道如何更改表单在texarea字段中文本的流动方式? - I don't know how to change the way text flows in a texarea field for a form? 如果我应该为自己的网站设置此联系表格的哪一部分,我必须进行更改? - Which part of this contact form I have to change if I am supposed to set up this form for my own website? 如何使我的联系表格有效? - how do i make my contact form work? 如何删除联系表格中多余的填充? - How can I remove excess padding in my contact form? 如何在我的联系表中向PHP添加另一个复选框? - How do I add another checkbox to the php in my contact form?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM