做网站怎么做连接点下一个页面,学做网站需要什么条件,陕西企业网站建设,印度网站域名边框样式背景样式
边框样式
1、边框属性
属性说明border-width边框的宽度border-style边框的外观border-color边框的颜色
border-style#xff1a;
属性值说明none无样式hidden与“none”相同。bug应用于表除外。对于表#xff0c;hidden用于解决边框冲突solid实线…边框样式背景样式
边框样式
1、边框属性
属性说明border-width边框的宽度border-style边框的外观border-color边框的颜色
border-style
属性值说明none无样式hidden与“none”相同。bug应用于表除外。对于表hidden用于解决边框冲突solid实线dashed虚线dotted点线double双线双线的宽度等于border-width值
属性值说明inset内凹outset外凸ridge脊线groove槽线 虽然border-style属性值很多但是大部分我们都用不上。一般情况下我们用到solid和dashed这两个属性值就够了。 img{border-width:1px;border-style:solid;border-color:Red;}2、border局部样式
border-top;border-bottom;border-left;border-right
border-right-width:1px;
border-right-style:solid;
border-right-color:red;简洁写法border-right:1px solid red; 背景样式
背景颜色background-color
背景图像
属性说明background-image定义背景图像的路径这样图片才能显示嘛background-repeat定义背景图像显示方式例如纵向平铺、横向平铺background-position定义背景图像在元素哪个位置background-attachment定义背景图像是否随内容而滚动
1、color和background-color
2、background-image:url(…/images/one.jpg) #div1
{width:143px;height:220px;background-image:url(../App_images/lesson/run_cj/one piece.jpg);
}3、background-repeat
属性值说明no-repeat表示不平铺repeat默认值表示在水平方向x轴和垂直方向y轴同时平铺repeat-x表示在水平方向x轴平铺repeat-y表示在垂直方向y轴平铺
4、background-position:12px 24px; 表示背景图片距离该元素左上角的水平方向位置是12px垂直方向位置是24px。注意这两个取值之间要用空格隔开。 也可以取值为“关键字”
top left;top center;top right;left center;center center;right center;botton left;bottom center;bottom right
5、background-attachment:scroll/fixed;