div+css垂直居中
1、首先打开adobe dreamweaver,新建文档。

2、书写代码html(<div class="div1">div+css垂直居中</di即枢潋雳v>)。css样式(.div1{ background:#09F; color:#FFF; height:50px; line-height:50px; text-align:center;})

3、查看效果。主要适用于P标签的行高。

1、首先打开adobe dreamweaver,新建文档。
2、书写代码html(<div class="div1">div+css垂直居中</di即枢潋雳v>)。css样式(.div1{ background:#09F; color:#FFF; height:50px; line-height:50px; text-align:center;})
3、查看效果。主要适用于P标签的行高。