div+css实现星级评分效果代码
代码语言:html
所属分类:星级评分
代码描述:div+css实现星级评分效果代码,全程无js代码,通过css实现。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.css"> <style> @charset "UTF-8"; html { --ctx-bg: #1d122f; --ctx-color: #f0f1f4; --accent: #ffe4c2; --highlight: #ff0196; height: 100%; background-color: var(--ctx-bg); background-image: linear-gradient(-30deg, var(--ctx-bg), #560e49); } body { display: flex; flex-direction: column; gap: 1em; justify-content: center; align-items: center; min-height: 100%; color: var(--ctx-color); } *, *::before, *::after { box-sizing: border-box; } .visuhide { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(1px, 1px, 1px, 1px); } .star-item .star-container:hover, .star-ra.........完整代码请登录后点击上方下载按钮下载查看
网友评论0