• CSS 使用技巧

    下面我和大家说说CSS在实践中的写法,注意的地方,我会在做标记,这样帮住大家读懂。 1. 文字的水平居中 将一段文字置于容器的水平中点,只要设置text-align属性即可: text-align:center;  //文字的居中 2. 容器的水平居中 先为该容器设置一个明确宽度,然后将margin的水平值设为auto即可。 div#container { width:760px; margin:0 auto;  //auto代表,左右两站对齐 } 3. 文字的垂直居中 ...阅读全文
    作者:admin | 分类:CSS | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |