CSS 9宫格边框
来源:互联网 发布:linux挂载分区命令 编辑:程序博客网 时间:2024/05/16 07:48
制作8个图片,分别对应左上,上,右上,左,右,左下,下和右下。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS</title>
<style type="text/css">...
div#outer
{...}{ background: url("images/top.gif") 0 0 repeat-x; }
div#outer div
{...}{ background: url("images/bottom.gif") 0 100% repeat-x; }
div#outer div div
{...}{ background: url("images/left.gif") 0 0 repeat-y; }
div#outer div div div
{...}{ background: url("images/right.gif") 100% 0 repeat-y; }
div#outer div div div div
{...}{ background: url("images/topleft.gif") 0 0 no-repeat; }
div#outer div div div div div
{...}{ background: url("images/topright.gif") 100% 0 no-repeat; }
div#outer div div div div div div
{...}{ background: url("images/bottomleft.gif") 0 100% no-repeat; }
div#outer div div div div div div div
{...}{ background: url("images/bottomright.gif") 100% 100% no-repeat; }
div#outer, div#inner
{...}{
width: 400px;
height: 300px;
}
div#inner
{...}{
padding: 15px;
}
</style>
</head>
<body>
<div id="outer">
<div>
<div>
<div>
<div>
<div>
<div>
<div id="inner">
<span>Some content here.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<head>
<title>CSS</title>
<style type="text/css">...
div#outer
{...}{ background: url("images/top.gif") 0 0 repeat-x; }
div#outer div
{...}{ background: url("images/bottom.gif") 0 100% repeat-x; }
div#outer div div
{...}{ background: url("images/left.gif") 0 0 repeat-y; }
div#outer div div div
{...}{ background: url("images/right.gif") 100% 0 repeat-y; }
div#outer div div div div
{...}{ background: url("images/topleft.gif") 0 0 no-repeat; }
div#outer div div div div div
{...}{ background: url("images/topright.gif") 100% 0 no-repeat; }
div#outer div div div div div div
{...}{ background: url("images/bottomleft.gif") 0 100% no-repeat; }
div#outer div div div div div div div
{...}{ background: url("images/bottomright.gif") 100% 100% no-repeat; }
div#outer, div#inner
{...}{
width: 400px;
height: 300px;
}
div#inner
{...}{
padding: 15px;
}
</style>
</head>
<body>
<div id="outer">
<div>
<div>
<div>
<div>
<div>
<div>
<div id="inner">
<span>Some content here.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
- CSS 9宫格边框
- css边框
- CSS边框
- CSS边框
- css边框
- Css边框
- CSS边框
- CSS边框
- css边框
- css边框
- CSS边框
- CSS 边框
- 【CSS学习】CSS 边框
- 图片加边框 (css)
- css 样式边框
- CSS 边框(十二)
- CSS边框设置经验
- CSS 立体边框
- 最新完成了基于Web 2.0的搜索网站开发:聚度网http://www.crossgo.com
- Test
- Apache+SVN+Trac搭建项目管理服务器的安装与配置详解!
- 初学入门:如何有效编写软件的75条建议
- Unix下的解压命令 tar
- CSS 9宫格边框
- 字幕换色
- 让Web项目中Velocity的#parse支持相对路径
- 用Java动态代理实现AOP
- DELPHI中使用DLL的方法以及INSTALLSHIELD中使用DLL方法
- 恭贺新春, 祝大家新年快乐, 万事如意
- AutomatedQA AQTime v5.40.399
- Immunity Debugger v1.4
- ListView 自绘模式的一种实现