摘要: 一、属性选择器 <style> /*1.属性选择器:用中括号选择含有value属性的input元素*/ input[value]{ color: blue; } /*2.属性选择器:用中括号选择含有value属性值为password的input元素*/ input[type=password]{ c 阅读全文
posted @ 2020-09-24 17:49 晨光曦微 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 文档:https://www.runoob.com/html/html5-form-input-types.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" conten 阅读全文
posted @ 2020-09-24 16:11 晨光曦微 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <style> /*原理:第一步*/ .box1{ width: 0; height: 0; border-top: 50px solid green; border-right: 50px solid red; border-bottom: 0px solid yellow; /*1.底边去除就变 阅读全文
posted @ 2020-09-24 11:51 晨光曦微 阅读(1623) 评论(0) 推荐(0) 编辑
摘要: 代码 <style type="text/css"> *{/*去除默认的距离*/ margin: 0; padding: 0; } .box{text-align: center;} /*让盒子内所有a元素水平居中*/ .box a{ display: inline-block; width: 36 阅读全文
posted @ 2020-09-24 11:05 晨光曦微 阅读(113) 评论(0) 推荐(0) 编辑