这个问题还真是宽,我只能说一般的一个div的css设置属性有:margin,padding,width,height,font-size,text-align,background,float,borderhttp://zh.html.net/tutorials/css/这里有比较详细的css样式教程。
- 数码问答
- 答案列表
css 设置属性:css可以设置哪些属性[朗读]
1、文本缩进:text-indent2、文本对齐:text-align3、字间隔:word-spacing4、字母间隔:letter-spacing5、字母转换:text-transform6、文本装饰:text-decoration7、处理空白符:white-space8、文本方向:decoration9、文本颜色:color10、背景颜色:background-color11、文本阴影:text-shadow还有一些属性,不是很常用,就没有列举了,了解每个具体的使用方法,可以到百度"w3cschool"了解!希望对你有所帮助。
可以编辑里面的内容如果你在body里面加上contenteditable="true",可以发现该div+css如何模拟textarea文本域高度自适应以达到html5标准的contenteditable属性。
大概3种只限于div+css1.这是第一种方法2..test{width:100px;height:100px;background:green;}这是第二种方法或者这样写#test{width:100px;height:100px;background:green;}这是第二种方法ps:id不能重复使用就是说一个页面上只能用一个同名id而class不限制3.引用外部文件这是第三种方法和方法二相似。
一般的一个div的css设置属性有:margin,padding,width,height,font-size,text-align,background,float,border。