Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
403 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 Answer

0 votes
by (71.8m points)

You can use css like this:

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

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

working demo

(工作演示)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...