繁体   English   中英

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

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

我有一个联系表格,并且按我喜欢的方式设置了它,但是文本为白色,因此当您键入时看不到它。 当您突出显示它时,它就可以工作了,但是人们看不到他们在打字什么。 我在这里托管了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;

        }

只是改变

字体颜色:#000000; 边框:1px实线#000000;

000000为您想要的任何颜色。

您想要变红的示例更改为#ff0000。

希望能帮助到你!

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM