zhanghaibing00 2016-10-12
CSS定义字体行间距line-height:xxpx;
CSS各种对齐代码,左对齐、右对齐、中间对齐、底部对齐、两端对齐等,代码简单,在此与大家分享:
/*CSS代码:*/ /*左对齐*/ .left { text-align: left; border: 1px dotted black; width: 50%; } /*右对齐*/ .right { text-align: right; border: 1px dotted black; width: 50%; } /*居中对齐*/ .center { text-align: center; border: 1px dotted black; width: 50%; } /*两端对齐*/ .justify { text-align: justify; border: 1px dotted black; width: 50%; }
参考:http://zhidao.baidu.com/link?url=gpkj0urG1l3_o4L2PbyVmHtqmA2Gc0xsCebGAZN_f1am_x7xgawGx0VQSqaegwyJerg6jvPUsOQnxh53vRMSz_
http://www.jb51.net/css/28142.html
background-color: blue;background-color: yellow;<input type="button" value="变蓝" @click="changeColorT