用css把div 在页面居中,?

html-css022

用css把div 在页面居中,?,第1张

css

不考虑宽好像不行吧~~

让css居中

外边距

margin:0

auto;

这个属性是根据div宽来居中的

写这个属性

必须要又宽

<div

style="margin:0

auto

width:500px">

Html中:<label><input type="checkbox" />记住我</label>

css中:input {vertical-align: -2px_vertical-align: -1pxmargin-right: 2px}

{cursor: url('路径/*.cur')}

需要一个锤子样子的cur鼠标样式文件

这样就可以改变鼠标样式了

如果想改变一个标签的就按下面样子

<a href="#" style="cursor:url('路径/*.cur')">CSS鼠标效果</a>