![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css样式
李宁也可以是程序员
实践才是硬道理
展开
-
背景的样式
图片的背景样式 可以只写background,这样比较简单,但顺序比较难记:颜色、路径、平铺方式、位置。 <style type="text/css"> div{ border:1px solid black; width:500px; height:500px; background-color:pink;/*背景颜色*/ background-image:url(img/1.jpg);/* 背景图片 */ background-repeat:no-repeat原创 2021-07-23 09:45:33 · 77 阅读 · 0 评论 -
table表格
table表格 table 表格标签 caption 表格标题 thead 表头的行标签 th 表头行的单元格 cellspacing 单元格与单元格之间的间距 cellpadding 单元格与内容之间的间距 rules=“cols” 只显示竖线 rules=“rows” 只显示横线 rules=“all” 显示所有线 对齐方式 align backgroung 只能写在td 中 不能写在tr 中 <table border="1" cellspacing="0px" cellpadding="0原创 2021-07-22 15:23:52 · 124 阅读 · 1 评论 -
css样式
三种选择器的介绍 <title>Document</title> <!--内部样式表 写在head头部,<style type="text/css"></style>--> <style type="text/css"> /*三种选择器 标签选择器 标签名{属性1:属性值1;属性2:属性值2;} */ p{ color:pink; } /* 类选择器 标签名{属性1:属性值1;属性2:属性值2原创 2021-07-22 15:19:27 · 59 阅读 · 0 评论 -
css边框样式
/* 边框的总体设置 border:边框的宽度 边框的样式:solid 实线 dashed 虚线 颜色 */ border:1px solid red; border-left-width:8px; border-left-style:dashed ; border-left-color:skyblue; border-top:5px dashed blue; width:300px; height:300px; color:skybl原创 2021-07-22 15:17:48 · 366 阅读 · 0 评论