css怎么改变button的边框颜色

html-css09

css怎么改变button的边框颜色,第1张

1、新建HTML文件。

2、创建HTML标签和内容。

3、预览效果如图。

4、设置右边框的颜色border-right-color:#30C。

5、预览效果如图。

6、设置右边框的颜色border-right-color:rgb(204,0,102)。

7、预览效果如图。

css设置

文本框

输入字体颜色:

直接设置

placeholder

的字体颜色为红色就行可以了。比如:

input{color:#fff}

input::-webkit-input-placeholder{color:#fff}

运行效果:

很简单,HTML中DIV+CSS网页布局,你要了解DIV盒子模型。

例如:

<div

class="test"></div>

.test{

width:100px

height:50px

border:blue

2px

dashed

padding:2px/*这里就是块元素的内边距了*/

background-color:red/*这里你要设定这个元素的背景颜色,才能显示出内边距*/

}