咨询热线:18609840880

资讯中心

秉承严谨的态度,为您提供专业的服务

CSS的基本属性及布局

发表时间:10-10  浏览次数:0

      使用css是网页设计者必须要遇到的问题,这也是一项网页制作技能,本文主要是简单介绍一些关于使用css要用到的基础属性及布局,以供参考!

    可设置的CSS属性包括:字体属性、文本属性、颜色及背景属性、边框属性、容器属性(边距属性、填充属性)、分类属性、鼠标属性。

  css的基础属性

  1、字体属性:font-family font-style font-variant font-weight font-size

  2、文本属性:word-spacing letter-spacing text-decoration vertical-align text-transform text-align text-indent line-height

  3、颜色背景属性:color background(background-color background-image background-repeat background-attachment background-position)

  4、边框属性:border(border-top border-right border-bottom border-left)(border-width border-style border-color)

  5、容器属性:margin padding width height float clear

  6、分类属性:display white-space list-style-type list-style-image list-style-position list-style

  7、鼠标属性:auto crosshair default hand move e-resize ne-resize nw-resize n-resize se-resize sw-resize s-resize w-resize text wait help

  CSS布局

  CSS盒每个元素都有一个元素盒,理解好CSS盒模型对CSS布局有很大的用处。HTML布局通常使用div+CSS,将网页分为很多方块,每个方块和整个总体都可以各用一个div容纳,然后用CSS对各个div进行布局。
        常用布局属性包括:margin padding float clear top right buttom left z-index position。

大连网站建设公司-新图闻,拥有设计团队为企业提供网站设计,网页制作,多媒体触摸屏演示设计,网址是www.xintuwen.cn.

版权所有:大连新图闻科技有限公司. 保留一切法律许可权利 代理律师:戴律师