摘要: 1.固定宽度的圆角框最容易的一种方式是:使用两个圆角图片,一个放在顶部,一个放在底部<div class="box"> <h2>Headline</h2> <p>Content</p></div>.box{ width:418px; background:url(images/bottom.gif) no-repeat left bottom;}.box h2 { background:url(images/top.gif) no-repeat left top;}要是不希望内容碰到框的边界,所以还需在 阅读全文
posted @ 2013-01-12 11:51 七星6609 阅读(320) 评论(0) 推荐(0) 编辑
摘要: body{ background:url(pattern.gif);}一般浏览器默认是水平或垂直地重复的现实这个图像可以选择背景图像的平铺方式:水平平铺:repeat-x垂直平铺:repeat-y不平铺:no-rpeatbody{ background: #CCC rul(pattern.gif) repeat-x;}如果想在站点的每个标题上添加一个符号h1{ padding-left:30px; background:url(images/bullet.gif) no-repeat left center;}关键字:left,center等背景的位置也可以使用单位:像素和百分数像素:... 阅读全文
posted @ 2013-01-12 11:17 七星6609 阅读(208) 评论(0) 推荐(0) 编辑