html初学请教怎么改变文本位置.

<HEAD>
<style type="text/css">
body{margin:100 auto; text-align:100; width:1000px;}
a:link,a:hover,a:visited,a:active{text-decoration: none; color:0000;}
</style>
</HEAD>

这里面怎么错的?怎么改可以改变Body内容的左右上下位置.

text-align:100这样写法是错误的;
text-align有left,right ,center,justify四种值;分别解释
left 把文本排列到左边。默认值:由浏览器决定。
right 把文本排列到右边。
center 把文本排列到中间。
justify 根据 textJustify 属性对齐文本。

修改body内容上下左右的位置 可以通过text-indent表示首行缩进,padding上下左右的边距,line-height设置行高等等来调节
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答