星空网 > 软件开发 > 网页设计

css样式之背景图片

1、css样式背景之使用图片来做为背景

example:

<!DOCTYPE html>

<html>

     <head>

           <meta http-equiv="content-type" content="text/html;charset=utf-8">

           <title>页面一</title> 

           <style>

               .logo{

                    background:url('image/gouwu.image') -19px -18px;height:20px;width:20px; no-repeat;

               }

           </style>

     </head>

     <body>

          <div class='logo' ></div>

     </body>

</html>




原标题:css样式之背景图片

关键词:CSS

CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流