html+css实例--- css样式代码

核心提示html+css实例源代码:实例代码#p1{background: #9a9af8 ;margin: 0 15%;/*外边距 上下边距为0px 左右边距为父元素的15% 主要是为了适应

html+css实例源代码:实例代码#p1{background: #9a9af8 ;margin: 0 15%;}h1{height: 70px;color: white;background: cornflowerblue;line-height: 70px;text-indent: 50px;}#p2{text-align: center;}#p2 li{display: inline-block;width: 100px;height: 30px;background: cornflowerblue;line-height: 30px;border: 2px solid cornflowerblue;border-radius: 0 20px;}#p2 li a{text-decoration: none;color: white;}#p2 li a:hover{font-weight: bold;}.center{text-align: center;}.center img{width: 190px;height: 300px;margin:0 10px;}.center video{width: 650px;height: 300px;margin:0 10px;}.margin{margin: 0 5%;}.margin p{text-indent: 2em;}textarea{width: 100%;height: 100px;}#copyright{background: cornflowerblue;text-align: center;color: white;height: 70px;line-height: 70px;font-size: 12px;}---------------------------------------------html+css实例源代码:实例代码

 
友情链接
鄂ICP备19019357号-22