好看的css样式:可以直接复制给备忘录用的

这篇具有很好参考价值的文章主要介绍了好看的css样式:可以直接复制给备忘录用的。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

好看的CSS样式

好看的css样式:可以直接复制给备忘录用的,css,html,前端

好看的按钮样式

1.好看的按钮样式:
<style>button, input { line-height: 35px; color: #fff; & a { color: #fff; text-shadow: 2px 2px 1px #000; } background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0)); background-color:#099204; ; box-shadow: inset 4px 4px 4px rgba(255, 255, 255, 0.6), inset -4px -4px 5px rgba(0, 0, 0, 0.6); border-radius: 10px; text-shadow: 1px 1px 1px #000; border: 0px solid black; font-size: 20px; padding: 0 10px; text-align: center; cursor: pointer; transition: all 0.1s ease; } .up-button3:hover, button:hover, input:hover { background-color: rgba(183, 0, 0, 0.861); } .up-button3 { background-color: rgb(255, 0, 0); } /* 按钮凹进去的样式 */ button:active, input:active { box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6); }<style>

 好看的复选框样式

<style>input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; position: relative; margin-right: 10px; border-radius: 50%; } input[type="checkbox"]::after { content: ""; width: 100%; height: 100%; border: 2px solid #f10505; position: absolute; left: -3px; top: -3px; border-radius: 50%; } /* 设置checkbox点击之后的样式*/ input[type="checkbox"]:checked::after { height: 15px; width: 25px; border-top: none; border-right: none; border-radius: 0; transform: rotate(-45deg); transition: all 0.5s ease-in-out; }</style>

图片背景样式

图片背景样式
  <style>  body {   text-indent: 5em;   background-image: url("file:///D:/%E5%9B%BE%E7%89%87/yyds.jpg"); background-repeat: no-repeat;  background-attachment: fixed; background-size: 100% 100%;   }</style> 

颜色渐变背景样式

背景样式1
  <style>body {text-indent: 5em;background: linear-gradient(0.25turn, #130808, #1a1c06ac, #011e1c82); }</style> 

备忘录最初的样式

备忘录最初的样式 <style>* { /* 外边距: 上右下左 */ margin: 0px 0px 0px 0px; /* 内边距: 上右下左 */ padding: 0 0 0 0; /* 文本颜色 */ color: #fff; } body { /* background: #cfd1e1; */ /* 文本缩进 */ text-indent: 5em; background: linear-gradient(0.25turn, #130808, #1a1c06ac, #011e1c82); /* background-image: url("file:///D:/%E5%9B%BE%E7%89%87/yyds.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-size: 100% 100%; */ } /* ********************背景颜色区**************************************** */ /* 3D立体文本的样式 */ dfn { text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135 } /* 3D背景的样式 */ .down-div, .finish, input, sub, button { background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0)); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px #100000; border: 0; line-height: 30px; padding: 0 10px; border-radius: 10px; } /* 按钮凹进去的样式 */ button:active, input:active { box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6); } /* 背景颜色 */ .up-button, sub, .updiv { background-color: #59f43aec; } button { background-color: #f4770a; } input { background-color: #f6d607; } input:hover, button:hover, .up-button3 { background-color: #ff0000fb; } .down-div { background-color: rgba(51, 154, 25, 0.502); } /* 鼠标变小手 */ input, button { cursor: pointer; } /* ***********************h1-div区************************************* */ .h-div { h1, p { display: inline; color: #000000; } } /* **********************up-div区************************************** */ .up-div { /* 圆角 */ border-radius: 10px; .up-button+input { width: 150px; } ; textarea { /* 文本对齐 居中*/ text-align: center; /* 字体大小 */ color: rgb(0, 0, 0); &::placeholder { color: rgb(248, 0, 0); /* 文本间隔 */ } } } /* ***********************down-div************************************* */ /* -设置checkbox样式----*/ input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; position: relative; margin-right: 10px; border-radius: 50%; } input[type="checkbox"]::after { content: ""; width: 100%; height: 100%; border: 2px solid #f10505; position: absolute; left: -3px; top: -3px; border-radius: 50%; } /* 设置checkbox点击之后的样式*/ input[type="checkbox"]:checked::after { height: 15px; width: 25px; border-top: none; border-right: none; border-radius: 0; transform: rotate(-45deg); transition: all 0.5s ease-in-out; } /* 选中文本样式 */ .finish { /* text-decoration: line-through; */ background: #000000; color:rgba(64, 250, 17, 0.765) }</style>

布局容器css画布背景样式文章来源地址https://www.toymoban.com/news/detail-823414.html

<style>  /*页面初始化,清除所有元素的内外边距*/ /* * { padding: 0; margin: 0; } */ body { background-color: #111; color: #fff; } .container { /* 绝对定位 */ position: absolute; /*calc()函数,动态计算,动态改变元素的位置 */ /* top: calc(50% - 120px); left: calc(50% - 120px); */ width: 200px; height: 200px; padding: 20px; /* 圆形 */ border-radius: 50%; /* 第二种 */ top: 50%; left: 50%; /* 就是先让盒子走页面的50% */ /* 然后用转换属性的2D位移 让元素走自身的宽度/高度的一半,利用这个属性就免去了计算 可以更快更方便的让元素到中间 */ transform: translate(-50%, -50%); /* 背景渐变色 旋转150度进行着色 transparent是透明色 */ background-image: linear-gradient(150deg, #5f2093, transparent, transparent); /* 动画 名称 时长 第三个属性值是贝塞尔曲线(让动画的运动轨迹有很多可能性),有兴趣自己研究一下(https://cubic-bezier.com/) infinite是无限次播放 */ animation: move 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; } .container::before, .container::after { content: ""; /* 相对定位 会以自身的当前位置进行位移 */ top: -185px; left: 65px; position: relative; /* 伪元素是行内元素 需要转为块级来设置宽和高 */ display: block; width: 10px; height: 10px; border-radius: 5px; background-color: rgba(255, 255, 255, 0.8); } .container::before { width: 35px; top: 40px; left: 30px; /* 逆时针旋转40度 */ transform: rotate(-40deg); } /* 行星 start */ .container .planet { width: 100%; height: 100%; border-radius: 50%; /* 同上 */ background-image: linear-gradient(150deg, #a37dce, #5f2093, transparent); } /* 行星 end */ /* 环绕的轨道 start */ .container .planet::before, .container .planet::after { content: ""; position: absolute; top: 90px; left: -40px; width: 300px; height: 40px; border-radius: 50%; border: 10px solid #c099ef; /* 先让两个伪元素的上边框颜色都为透明色 */ border-top-color: transparent; /* 逆时针旋转20度 */ transform: rotate(-20deg); } .container .planet::after { border-top-color: #c099ef; /* 这个属性是堆叠顺序 只针对定位元素有效 这里随便写个负值就可以对于的部分就会被覆盖掉 */ z-index: -99; } /* 环绕的轨道 end */ /* 做一下漂浮的动画 */ @keyframes move { 0% { top: 50%; } 50% { top: 45%; } 100% { top: 50%; } }</style> <div class="container">
			<div class="planet"></div>

到了这里,关于好看的css样式:可以直接复制给备忘录用的的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • HTML+CSS+JS做一个好看的个人网页—web网页设计作业

    个人网页(html+css+js)——网页设计作业 带背景音乐(The way I still Love you)、樱花飘落效果、粒子飘落效果 页面美观,样式精美 涉及(html+css+js),下载后可以根据自己需求进行修改 完整源码在这里获取https://download.csdn.net/download/weixin_61370021/87240400 主页 博客页面 视频页面

    2024年02月03日
    浏览(39)
  • 玫瑰花动态代码html(可直接复制)

    !DOCTYPE html html head meta charset=\\\"UTF-8\\\" title玫瑰/title style type=\\\"text/css\\\" #shusheng { position: absolute; width: 100%; height: 100%; text-align: center; } /style /head body div style=\\\"text-align: center\\\" /div div id=\\\"shusheng\\\" canvas id=\\\"c\\\"/canvas script var b = document.body; var c = document.getElementsByTagName(\\\'canvas\\\')[0]; var a = c.getContex

    2024年02月06日
    浏览(28)
  • 92款超级漂亮的css按钮样式 复制即用

    样式如图,代码已在结尾,按照序号复制粘贴便可直接用了: 代码:

    2024年02月12日
    浏览(107)
  • HTML样式CSS、图像

    HTML样式-CSS: CSS (Cascading Style Sheets) 用于渲染HTML元素标签的样式。CSS可以通过以下方式添加到HTML中:1)、内联方式:在HTML元素中使用“style”属性;2)、内部样式表:在HTML文档头部head区域使用style元素来包含CSS;3)、外部引用:使用外部CSS文件。 、内联样式: p style=“co

    2024年02月06日
    浏览(62)
  • HTML--CSS--字体、文本样式

    属性 作用 font-family 字体类型 font-size 字体大小 font-weight 字体粗细 font-style 字体风格 color 字体颜色 用法: 如下,定义 div元素内的字体,默认是宋体,要设定其他字体就用这个属性进行设定,关于各字体,我用VSCode写代码时有补全,就不一一列出了 用法: 字体粗细属性:

    2024年01月17日
    浏览(32)
  • HTML--CSS--超链接样式以及鼠标样式自定义

    再复习一下,超链接的定义方式如下: 如果觉得下划线不好看,可以加上: a{text-decoration: none;} 这都是之前学到过的东西,另外 如果你有注意的话,应该能发现超链接未点击时,点击时和点击后的颜色都是不同的。 这个颜色我们也可以自定义,方法如下: a:link 定义超链接元

    2024年01月18日
    浏览(41)
  • HTML--CSS--边框、列表、表格样式

    属性: border-width 边框宽度 border-style 边框外观 border-color 边框颜色 需要同时设定三个属性 取值为像素值 none 无样式 dashed 虚线 solid 实线 如示例: 为 div 设定了一个边框,虚线,宽度10像素,颜色是红色 效果: 另一写法:简写,将配置都写进 border里 ,效果是一样的 border-top

    2024年01月17日
    浏览(36)
  • HTML--CSS--图片和背景样式

    最基本的应该就是对大小的管理 width:像素值; 宽度 height:像素值; 高度 一样使用 border 进行定义 效果: 图片对齐和文本的对齐是一样的,也是用 text-align 进行,但需要注意不能直接在 img 定义,需要在父元素处定义 属性依然是: left 左对齐 center 居中 right 右对齐 效果: 用法

    2024年01月18日
    浏览(45)
  • 前端= 结构(HTML)+ 样式(CSS)+ 行为(JavaScript)

    前端开发确实涵盖了行为(JavaScript)、样式(CSS)和结构(HTML)这三个主要方面。这三个方面在前端开发中密切协作,共同构建用户界面和用户体验。 结构(Structure):HTML 是用于定义页面结构的标记语言。通过使用 HTML 标签,可以创建网页的基本骨架,包括标题、段落、

    2024年02月13日
    浏览(44)
  • HTML---CSS-引入样式表和选择器

    CSS : Cascading Style Sheet 层叠式样式表 HTML 用于控制网页的结构,CSS则用于控制网页的外观,想要做出美观好看的网页,CSS是必须的 引入外部样式表: 它的属性 rel 和 type 是固定的 语法: 引入内部样式表 type属性也是固定的 语法: 引入行内样式表 语法: 效果: HTML中有两个属

    2024年01月19日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包