【修改内容用的】
*{
padding: 0px;
border: 0px;
box-sizing: border-box;
}
width="数值"(尺寸(宽)) height="数值" (尺寸(高))
margin: 10px;(外边距) padding: 10px;(内边距)
margin-right (这个可以左右位置变动) float: left; (浮动)
border: 0px solid #000; border: ;(边框) solid(实线)
font-weight: 600;(字体加粗) font-size: 20px;(字体大小)
text-decoration: none;(去除下划线)
shortcut icon(修改小标,备注类似于小标志)
word-wrap:"break-word"定位
postion:absolute;(绝对定位) position: relative;(相对定位)
margin: 0 auto ;(块元素居中) text-align: center;(文字居中)
text-decoration: none;(a标签去除下划线)text-indent: 2em;(首行缩进)
text-align: left;(文字向左) text-align: right;(文字向右) text-align: center;(文字居中)
border: 25%;(百分比) border-radius: 60px;(数值)(边框圆角)
border: 1px solid #e5e5e5;(外边框颜色)
list-style: none;(ul 的li下面的· ( 去除点(列如无序列表的点))
background-color(背景颜色 可去掉后面) color: blue;(颜色)
input{outline:none;} 【点击时去掉原有边框】
/* 渐变*/ background-image: linear-gradient(to left, red , yellow) /* 线性 */
background-image: radial-gradient(to left, red , yellow) /* 径向 */
.text{(居中)width: 50%; border: 1px solid #000; margin: 0 auto; text-align: center;}
【清楚浮动】
.qneb::after{ display: block; content: ""; clear: both;} (必须双引号)
.ipt_text{ (输入框消除裱框)border: none; outline: none; background: none;}
/* css尾类事件 */
.txt{text-align: center;} .txt:hover{color: blue;}
.txt:hover h1{(定制到位)color: blue; background-color: cadetblue; font-size: 1000px; transition: 25s ;(时间延迟) position: relative; overflow: hidden;}
/* 鼠标触及移动 */ transform: translate(150px);
/* 横移 */ transform: translateX();
/* 竖移 */ transform: translateY(); transition: 6s;
/* 放大缩小 */ transform: scale(0.5);
/* 一个值时候单独,俩个为宽高 */
/* 旋转 */ transform: rotate(300deg);
background: linear-gradient(blue,red);(颜色)
animation-name: 名字;(名字)
animation-duration: 执行一次的时间;(执行一次的时间)
animation-delay: ;()
@keyframes WWW { from {transform: rotate(0deg); to {transform: rotate(360deg); } }
/* css动画属性值 */ /* 动画事件 */ @keyframes: WWW {写事件}
[通用属性]
.lata {
/* 调用名字 */animation-name: WWW;
/* 动画执行时间 */animation-duration: 0s;
/* 动画延迟时间 */animation-delay: 0s;
/* 动画重复次数 */animation-iteration-count: infinite;
/* 动画运动形式 */ animation-timing-function: linear;
/* linear匀速 ease-in低速开始 ease-out低俗结束 easein-in-out全程低速 */
/* 3D的意思 */transform-style:preserve-3d ;
/* 只能显示当前 */backface-visibility: hidden;
/* 过渡时间 */transition: transform 0.5s linear;
transform: rotateX(180deg); transform: rotateX(180px)
transform: rotateY(180deg); transform: rotateY(180px);
transform: rotateZ(180deg); transform: rotateZ(180px);
/* flex弹性布局 */
/* display: flex; */
/* flew-wrap属性 */
/* flex-warp属性
nowrap:表示不换行
wrap:正常换行,第一个位于第一行的第一个
wrap-reverse:向上换行,第一行位于下方
*/
/* flex弹性布局 */
/* display: flex; */
/* flew-wrap属性 */
/* flex-warp属性
nowrap:表示不换行
wrap:正常换行,第一个位于第一行的第一个
wrap-reverse:向上换行,第一行位于下方
*/
/* justify-content属性 */
/* content属性用于设置项目在容器 */
/* flex-start: 左对齐*/
/* flex-end: 右对齐*/
/* space-between 两端对齐 */
/* justify-content属性 */
/* content属性用于设置项目在容器 */
/* flex-start: 左对齐*/
/* flex-end: 右对齐*/
/* space-between 两端对齐 */