Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
398 views
in Technique[技术] by (71.8m points)

jquery - CSS麻烦添加边框(CSS Trouble adding border)

i'm trying to add a black border to the text box on this code -

(我正在尝试在此代码的文本框中添加黑色边框-)

             <p class="line-item-property__field">
              <div style="clear:both">
  <label for="custom-text">Customise Text</label>
                </div>
  <input id="custom-text" type="text" name="properties[Custom Text]">
</p>

I've searched the internet and tried multiple things but i'm not good with this stuff i'm still learning.

(我已经在互联网上搜索并尝试了多种方法,但是我对仍在学习的这些东西并不满意。)

  ask by Ross Greene translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can use css like this:

(您可以像这样使用CSS:)

#custom-text{
 border: solid black 2px; 
}

working demo

(工作演示)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...