技术标签: css3
1.checkbox样式优化
效果图如下:
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>checkbox美化</title>
</head>
<style type="text/css">
/*input框中颜色更改*/
.divBox{
display: flex;
}
.iconColor{
width: 80px;
height: 80px;
position: relative;
}
#color-input-red+label {
display: block;
width: 20px;
height: 20px;
cursor: pointer;
position: absolute;
border-radius: 4px;
border:1px solid rgba(240, 84, 77, 1);
top: 0;
left: 0;
background: white;
}
#color-input-red:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: rgba(240, 84, 77, 1);
}
input[type=checkbox] {
visibility: hidden;
}
#color-input-orange+label {
display: block;
width: 20px;
height: 20px;
border-radius: 4px;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
background: rgba(234, 152, 54, 1);
}
#color-input-orange:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: white;
}
#color-input-yellow+label {
display: block;
width: 20px;
height: 20px;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
background: rgba(230, 192, 58, 1);
}
#color-input-yellow:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: white;
}
#color-input-green+label {
display: block;
width: 20px;
height: 20px;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
background: rgba(95, 189, 65, 1);
}
#color-input-green:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: white;
}
#color-input-blue+label {
display: block;
width: 20px;
height: 20px;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
background: rgba(61, 170, 230, 1);
}
#color-input-blue:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: white;
}
#color-input-purple+label {
display: block;
width: 20px;
height: 20px;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
background: rgba(195, 122, 211, 1);
}
#color-input-purple:checked+label::before {
display: block;
content: "\2714";
text-align: center;
font-size: 16px;
color: white;
}
</style>
<body>
<div class="chat-windows-color-div">
<div class="divBox">
<div class="iconColor">
<input id="color-input-red" class="chat-button-location-radio-input" type="checkbox" name="color-input-red"
value="#f0544d" />
<label for="color-input-red"></label>
</div>
<div class="iconColor">
<input id="color-input-orange" class="chat-button-location-radio-input" type="checkbox" name="color-input-orange"
value="#ea9836" />
<label for="color-input-orange"></label>
</div>
<div class="iconColor">
<input id="color-input-yellow" class="chat-button-location-radio-input" type="checkbox" name="color-input-yellow"
value="#e6c03a" />
<label for="color-input-yellow"></label>
</div>
<div class="iconColor">
<input id="color-input-green" class="chat-button-location-radio-input" type="checkbox" name="color-input-green"
value="#5fbd41" />
<label for="color-input-green"></label>
</div>
<div class="iconColor">
<input id="color-input-blue" class="chat-button-location-radio-input" type="checkbox" name="color-input-blue"
value="#3daae6" />
<label for="color-input-blue"></label>
</div>
<div class="iconColor">
<input id="color-input-purple" class="chat-button-location-radio-input" type="checkbox" name="color-input-purple"
value="#c37ad3" />
<label for="color-input-purple"></label>
</div>
</div>
</div>
</body>
</html>
2.input[type=file] 样式美化
效果图如下:
代码如下:
<style>
.a-upload {
padding: 4px 10px;
height: 20px;
line-height: 20px;
position: relative;
cursor: pointer;
color: #888;
background: #fafafa;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
display: inline-block;
*display: inline;
*zoom: 1
}
.a-upload input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
filter: alpha(opacity=0);
cursor: pointer
}
.a-upload:hover {
color: #444;
background: #eee;
border-color: #ccc;
text-decoration: none
}
.file {
position: relative;
display: inline-block;
background: #D0EEFF;
border: 1px solid #99D3F5;
border-radius: 4px;
padding: 4px 12px;
overflow: hidden;
color: #1E88C7;
text-decoration: none;
text-indent: 0;
line-height: 20px;
}
.file input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
}
.file:hover {
background: #AADFFD;
border-color: #78C3F3;
color: #004974;
text-decoration: none;
}
</style>
<a href="javascript:;" class="a-upload">
<input type="file" name="" id="">点击这里上传文件
</a>
<a href="javascript:;" class="file">选择文件
<input type="file" name="" id="">
</a>
3.input[type=radio]的样式美化
效果图如下:
代码如下
<div>
<p style="font-size:18px;margin-top:30px;color:rgba(0,0,0,0.44)">对吗?</p>
<label class="demo--label">
<input class="demo--radio" type="radio" name="demo-radio">
<span class="demo--radioInput"></span>对
</label>
<label class="demo--label">
<input class="demo--radio" type="radio" name="demo-radio">
<span class="demo--radioInput"></span>不对
</label>
</div>
<div>
<p style="font-size:18px;margin-top:30px;color:rgba(0,0,0,0.44)">你喜欢的是?</p>
<label class="demo--label"><input class="demo--radio" type="checkbox" name="demo-checkbox1">
<span class="demo--checkbox demo--radioInput"></span>A
</label>
<label class="demo--label">
<input class="demo--radio" type="checkbox" name="demo-checkbox2">
<span class="demo--checkbox demo--radioInput"></span>B
</label>
<label class="demo--label">
<input class="demo--radio" type="checkbox" name="demo-checkbox3">
<span class="demo--checkbox demo--radioInput"></span>C
</label>
</div>
<style>
.demo--label{margin:20px 20px 0 0;display:inline-block}
.demo--radio{display:none}
.demo--radioInput{background-color:#fff;border:1px solid rgba(0,0,0,0.15);border-radius:100%;display:inline-block;height:16px;margin-right:10px;margin-top:-1px;vertical-align:middle;width:16px;line-height:1}
.demo--radio:checked + .demo--radioInput:after{background-color:#57ad68;border-radius:100%;content:"";display:inline-block;height:12px;margin:2px;width:12px}
.demo--checkbox.demo--radioInput,.demo--radio:checked + .demo--checkbox.demo--radioInput:after{border-radius:0}
</style>
4.input[type=text]的样式美化
效果图如下:
代码如下:
<input type="text" class="form_input" placeholder="请输入姓名" />
<style>
input{
font-size:12px;
/* 设置输入框中字体的大小 */
height:30px;
/* 设置输入框的高度 */
border-radius:4px;
/* 设置输入框的圆角的大小 */
border:1px solid #c8cccf;
/* 设置输入框边框的粗细和颜色 */
color:#986655;
/* 设置输入框中文字的颜色 */
outline:0;
/* 将输入框点击的时候出现的边框去掉 */
text-align:left;
/* 设置输入框中文字的位置 */
padding-left: 10px;
display:block;
/* 将输入框设置为块级元素 */
cursor: pointer;
box-shadow: 2px 2px 5px 1px #ccc;
}
input::-webkit-input-placeholder{
color: #986655;
font-size: 12px;
}
</style>
文章浏览阅读1w次。Redis 提供了客户端访问工具redis-cli, 可以连接Redis服务器,执行Redis命令. redis-cli 有两种执行方式, 一种是交互式执行命令, 一种是非交互式执行.1. redis-cli 交互方式1.1 交互式交互式执行方式, 首先通过redis-cli 与redis服务器建立连接, 然后再执行redis相关命令, 与redis 进行交互$ redis-cli -h..._redis-cli 删可以 非交互式
文章浏览阅读1.5k次。APP开发:安卓、苹果、h5微信纯开发、微商城搭建、办公系统、财务系统、报名系统、活动、抽奖、促销系统、奖金结算系统、直播系统、网站建设、商城、全返系统、公众号开发、网站开发、软件开发高端定制app开发,商城app开发,app定制开发,企业办公系统开发,CRM开发,OA开发,移动办公软件开发,各种软件定制开发开发端口:APP(安卓+iOS) 手机网页端(H5) 电脑网页端 (pc) PC+手机二合一官网网站 v:wxlhlllhl..._v:wxlhlllhl
文章浏览阅读1.3w次,点赞2次,收藏2次。莫名其妙的bugCaused by: org.junit.platform.commons.JUnitException: MethodSelector [className = 'com.wgg.MybatisPlusDemo02ApplicationTests', methodName = 'contextLoads', methodParameterTypes = ''] resolution failed at org.junit.platform.launcher.listeners.disc_junit internal error occurred
文章浏览阅读3.5w次,点赞33次,收藏62次。基于Python制作一个车型识别小程序,可用于拍照识车,根据拍摄照片,快速识别图片中车辆的品牌型号。_python车型识别系统
文章浏览阅读1w次。首先说jobtype跟azkaban的webserver端无关,因为webserver节点只负责项目作业管理(上传和分发),并不关心你上传的是哪种类型的作业。负责具体执行的executor会解析job文件。还记得在配置.job作业文件的时候,使用type关键字指定作业类型吗?executor有一个作业类型管理器,在其构造方法中可以看到,既可以加载默认的作业类型,也能从插件中加载新的作业类型_azkaban user.to.proxy
文章浏览阅读4.8k次。拓扑:配置思路采用如下的思路配置MSTP的基本功能:将SwitchA和SwitchC配置到一个域内,域名为RG1,创建实例1。将SwitchB和SwitchD配置到另外一个域,域名为RG2,创建实例1。配置交换机SwitchA为CIST总根。在域RG1内,交换机SwitchA为CIST域根,SwitchA为实例1的域根_华为swtms
文章浏览阅读2.3k次。1. 程序主入口2. 创建新的页面3. 使用新的页面打开刚创建的新页面OtherMainActivity.java修改代码,使在新的页面显示文本 “新的页面”打开页面管理文件AndroidManifest.xml,找到==<activity </ activity>== 标签,根据如下图在标签最后添加或删除以下代码,App启动就会自动加载此新的页面,<intent-filter> <action android:name="android_android开发 新建页面
文章浏览阅读526次。2017年大学计算机基础试题题库及答案一、单选题1、世界上首次提出存储程序计算机体系结构的是A 莫奇莱 B 艾仑·图灵 C 乔治·布尔 D 冯·诺依曼2、世界上第一台电子计算机诞生于A 1941年 B 1946年 C 1949年 D 1950年3、世界上第一台电子数字计算机采用的主要逻辑部件是A 电子管 B 晶体管 C 继电器 D 光电管4、下列叙述正确的是A 世界上第一台电子计算机ENIAC首次..._21年统考计算机题目
文章浏览阅读6.7k次。在腾讯的群面的过程中,时间有限且每组人数众多,每个人都比较难将自己对群面题目的完整思路展现出来,同时,还有考虑小组共同完成时的配合问题,核心思路是群面的重要内容,言简意赅的把群面题合作完成并完善具体,才能够在群面时游刃有余。 首先给大家分享一下我在腾讯的群面过程:一、面试准备 4.10 不知什么原因,还没有收到面试通知,内心很不安,尤其看到不少己经拿到面试通知在群里晒的同学。4.11快吃午饭时,手..._腾讯校园招聘群面真题
文章浏览阅读5.5k次,点赞3次,收藏14次。网站建设方案书一、网站内容简单概述+网站整体设计见下图(官网首页截图)。【官网首页截图】1、网站作用:记录自己日常生活,让别人了解我认识我2、网站规模:一般不超过二十个网页组成,所以规模不大3、网站目标客户:主要是自己,还有同学,朋友,和亲戚。4、网站特色:我的这类网站受众一般为青年人,所以在色彩上和设计风格上追求青年人的口味,画面绚烂,在内容上的特色表现为:(1)内容..._域名备案网站建设方案书模板
文章浏览阅读831次。刚了解这个,request年底就不再更新支持。一只想用axios替换,后来发现了got,就尝试使用一下。安装: npm install --save got使用: const got = require('got'); const { body } = await got.post('https://www.网址/orders', { json: { userId: "564456546ld5",_koa got
文章浏览阅读1.6k次。系统测试报告1.前言1.1概述说明这份验收测试报告的具体编写目的,指出预期的阅读范围。(1) 本报告按照项目的技术要求反映项目的验收测试结果(2) 阅读对象为项目组所有成员及其相关授权的人员项目背景说明:(1)被检验产品、产品构件名称;(2)该产品的任务提出者、开发者、用户及安装此产品的计算中心,指出测试环境与实际运行环境之间可能存在的差异以及这些差异对测试结果的影响。1.2术语与缩略语列出项目文档的专用术语和缩写词。以便阅读时,使读者明确,从而不产生歧义。该项根据实际情况可以删减。1_系统功能测试报告