1,直接在元素上定义style,如下:
1 < input type = "button" style = "这里定义样式" >
2,页面中内嵌样式,如下:
1 2 3 4 < style > .btn{需要添加的样式} </ style > < input type = "button" class = "btn" >
3,外部引用css文件,如下:
1 < link rel = "stylesheet" type = "text/css" href = "这里是css文件的路径" >转载于:https://www.cnblogs.com/lhlong/p/5956584.html