- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
已解决
请参阅下面代码段中的工作代码。可以使用的人免费使用。
描述:有一个包装器包含 10 个“查看更多/更少”部分。所有 11 个都可以折叠和关闭。按钮有悬停效果。文字均为英文。没有 Javascript 或 jQuery。纯 CSS/HTML 解决方案。
如果您不需要全部十个,只需将它们从 HTML 中删除即可。无需从 CSS 中删除它们。
由于 wrapper 很长,我在折叠的底部添加了一个按钮。所有部分均由水平标尺分隔。
兼容:
<p>
<img>
<iframe>
问题
我正在尝试创建一个两级“多读/少读”。
第一级应该隐藏/显示和包装大量的信息,例如图像、视频和文本。此信息将分为各自的“阅读更多/阅读更少”部分,包装内总共最多 10 个部分。
但是我很难创建作为包装器一部分的第二层。我相信可以这样做,但我真的做不到。
hr {
border: 0;
border-bottom: 1px dashed #2E181A;
background: #2E181A;
width: 50%;
}
/*=============== READ MORE READ LESS ============*/
/******************** Danish **********************/
/*************** See more wrapper *****************/
/**************************************************/
.wrapper-state {
display: none;
}
.wrapper-target {
opacity: 0;
height: 0;
font-size: 0;
transition: .25s ease;
}
.wrapper-state ~ .wrapper-wrap {
display: none;
}
.wrapper-state:checked ~ .wrapper-wrap {
display: block;
}
.wrapper-state:checked ~ .wrapper-wrap .wrapper-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.wrapper-state ~ .wrapper-trigger:before {
content: 'Se mere om hingstene';
}
.wrapper-state:checked ~ .wrapper-trigger:before {
content: 'Luk afsnit';
}
.wrapper-state ~ .wrapper-trigger2:before {
content: 'Se mere om hingstene';
display: none;
}
.wrapper-state:checked ~ .wrapper-trigger2:before {
content: 'Luk afsnit';
display: inline-block;
}
.wrapper-trigger, .wrapper-trigger2 {
cursor: pointer;
display: block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
text-align: center;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
.wrapper-trigger2:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more first ******/
/*********************/
.first-state{
display: none;
}
.wrapper-target .first-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.first-state:checked ~ .wrapper-wrap .first-wrap .first-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.first-state ~ .wrapper-wrap .first-trigger:before {
content: 'Se mere';
}
.first-state:checked ~ .wrapper-wrap .first-trigger:before {
content: 'Se mindre';
}
.first-state ~ .first-wrap {
display: none;
}
.first-state:checked ~ .first-wrap {
display: block;
}
.first-target img {
height: 0;
}
.first-state:checked ~ .wrapper-wrap .first-target img {
height: auto;
}
.first-target p {
display: none;
}
.first-state:checked ~ .wrapper-wrap .first-target p {
display: block;
}
.first-target iframe {
height: 0;
}
.first-state:checked ~ .wrapper-wrap .first-target iframe {
height: 100%;
}
.wrapper-wrap .first-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .first-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more second ******/
/*********************/
.second-state{
display: none;
}
.wrapper-target .second-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.second-state:checked ~ .wrapper-wrap .second-wrap .second-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.second-state ~ .wrapper-wrap .second-trigger:before {
content: 'Se mere';
}
.second-state:checked ~ .wrapper-wrap .second-trigger:before {
content: 'Se mindre';
}
.second-target img {
height: 0;
}
.second-state:checked ~ .wrapper-wrap .second-target img {
height: auto;
}
.second-target p {
display: none;
}
.second-state:checked ~ .wrapper-wrap .second-target p {
display: block;
}
.second-target iframe {
height: 0;
}
.second-state:checked ~ .wrapper-wrap .second-target iframe {
height: 100%;
}
.wrapper-wrap .second-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .second-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more third ******/
/*********************/
.third-state{
display: none;
}
.wrapper-target .third-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.third-state:checked ~ .wrapper-wrap .third-wrap .third-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.third-state ~ .wrapper-wrap .third-trigger:before {
content: 'Se mere';
}
.third-state:checked ~ .wrapper-wrap .third-trigger:before {
content: 'Se mindre';
}
.third-target img {
height: 0;
}
.third-state:checked ~ .wrapper-wrap .third-target img {
height: auto;
}
.third-target p {
display: none;
}
.third-state:checked ~ .wrapper-wrap .third-target p {
display: block;
}
.third-target iframe {
height: 0;
}
.third-state:checked ~ .wrapper-wrap .third-target iframe {
height: 100%;
}
.wrapper-wrap .third-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .third-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more fourth ******/
/*********************/
.fourth-state{
display: none;
}
.wrapper-target .fourth-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.fourth-state:checked ~ .wrapper-wrap .fourth-wrap .fourth-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.fourth-state ~ .wrapper-wrap .fourth-trigger:before {
content: 'Se mere';
}
.fourth-state:checked ~ .wrapper-wrap .fourth-trigger:before {
content: 'Se mindre';
}
.fourth-target img {
height: 0;
}
.fourth-state:checked ~ .wrapper-wrap .fourth-target img {
height: auto;
}
.fourth-target p {
display: none;
}
.fourth-state:checked ~ .wrapper-wrap .fourth-target p {
display: block;
}
.fourth-target iframe {
height: 0;
}
.fourth-state:checked ~ .wrapper-wrap .fourth-target iframe {
height: 100%;
}
.wrapper-wrap .fourth-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .fourth-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more fifth ******/
/*********************/
.fifth-state{
display: none;
}
.wrapper-target .fifth-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.fifth-state:checked ~ .wrapper-wrap .fifth-wrap .fifth-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.fifth-state ~ .wrapper-wrap .fifth-trigger:before {
content: 'Se mere';
}
.fifth-state:checked ~ .wrapper-wrap .fifth-trigger:before {
content: 'Se mindre';
}
.fifth-target img {
height: 0;
}
.fifth-state:checked ~ .wrapper-wrap .fifth-target img {
height: auto;
}
.fifth-target p {
display: none;
}
.fifth-state:checked ~ .wrapper-wrap .fifth-target p {
display: block;
}
.fifth-target iframe {
height: 0;
}
.fifth-state:checked ~ .wrapper-wrap .fifth-target iframe {
height: 100%;
}
.wrapper-wrap .fifth-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .fifth-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more sixth ******/
/*********************/
.sixth-state{
display: none;
}
.wrapper-target .sixth-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.sixth-state:checked ~ .wrapper-wrap .sixth-wrap .sixth-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.sixth-state ~ .wrapper-wrap .sixth-trigger:before {
content: 'Se mere';
}
.sixth-state:checked ~ .wrapper-wrap .sixth-trigger:before {
content: 'Se mindre';
}
.sixth-target img {
height: 0;
}
.sixth-state:checked ~ .wrapper-wrap .sixth-target img {
height: auto;
}
.sixth-target p {
display: none;
}
.sixth-state:checked ~ .wrapper-wrap .sixth-target p {
display: block;
}
.sixth-target iframe {
height: 0;
}
.sixth-state:checked ~ .wrapper-wrap .sixth-target iframe {
height: 100%;
}
.wrapper-wrap .sixth-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .sixth-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more seventh ******/
/*********************/
.seventh-state{
display: none;
}
.wrapper-target .seventh-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.seventh-state:checked ~ .wrapper-wrap .seventh-wrap .seventh-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.seventh-state ~ .wrapper-wrap .seventh-trigger:before {
content: 'Se mere';
}
.seventh-state:checked ~ .wrapper-wrap .seventh-trigger:before {
content: 'Se mindre';
}
.seventh-target img {
height: 0;
}
.seventh-state:checked ~ .wrapper-wrap .seventh-target img {
height: auto;
}
.seventh-target p {
display: none;
}
.seventh-state:checked ~ .wrapper-wrap .seventh-target p {
display: block;
}
.seventh-target iframe {
height: 0;
}
.seventh-state:checked ~ .wrapper-wrap .seventh-target iframe {
height: 100%;
}
.wrapper-wrap .seventh-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .seventh-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more eight ******/
/*********************/
.eight-state{
display: none;
}
.wrapper-target .eight-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.eight-state:checked ~ .wrapper-wrap .eight-wrap .eight-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.eight-state ~ .wrapper-wrap .eight-trigger:before {
content: 'Se mere';
}
.eight-state:checked ~ .wrapper-wrap .eight-trigger:before {
content: 'Se mindre';
}
.eight-target img {
height: 0;
}
.eight-state:checked ~ .wrapper-wrap .eight-target img {
height: auto;
}
.eight-target p {
display: none;
}
.eight-state:checked ~ .wrapper-wrap .eight-target p {
display: block;
}
.eight-target iframe {
height: 0;
}
.eight-state:checked ~ .wrapper-wrap .eight-target iframe {
height: 100%;
}
.wrapper-wrap .eight-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .eight-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more nine ******/
/*********************/
.nine-state{
display: none;
}
.wrapper-target .nine-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.nine-state:checked ~ .wrapper-wrap .nine-wrap .nine-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.nine-state ~ .wrapper-wrap .nine-trigger:before {
content: 'Se mere';
}
.nine-state:checked ~ .wrapper-wrap .nine-trigger:before {
content: 'Se mindre';
}
.nine-target img {
height: 0;
}
.nine-state:checked ~ .wrapper-wrap .nine-target img {
height: auto;
}
.nine-target p {
display: none;
}
.nine-state:checked ~ .wrapper-wrap .nine-target p {
display: block;
}
.nine-target iframe {
height: 0;
}
.nine-state:checked ~ .wrapper-wrap .nine-target iframe {
height: 100%;
}
.wrapper-wrap .nine-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .nine-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
/****** See more ten ******/
/*********************/
.ten-state{
display: none;
}
.wrapper-target .ten-target {
opacity: 0;
max-height: 0;
font-size: 0;
transition: .25s ease;
}
.ten-state:checked ~ .wrapper-wrap .ten-wrap .ten-target {
opacity: 1;
font-size: inherit;
max-height: 999em;
}
.ten-state ~ .wrapper-wrap .ten-trigger:before {
content: 'Se mere';
}
.ten-state:checked ~ .wrapper-wrap .ten-trigger:before {
content: 'Se mindre';
}
.ten-target img {
height: 0;
}
.ten-state:checked ~ .wrapper-wrap .ten-target img {
height: auto;
}
.ten-target p {
display: none;
}
.ten-state:checked ~ .wrapper-wrap .ten-target p {
display: block;
}
.ten-target iframe {
height: 0;
}
.ten-state:checked ~ .wrapper-wrap .ten-target iframe {
height: 100%;
}
.wrapper-wrap .ten-trigger {
cursor: pointer;
display: inline-block;
padding: 0 .5em;
background-color:#2E181A;
color: #E6D9BD;
font-size: .9em;
line-height: 2;
border: 1px solid #E6D9BD;
border-radius: 0.5em;
}
.wrapper-wrap .ten-trigger:hover {
border: 1px solid #2E181A;
background-color: #E6D9BD;
opacity: 1;
color:#2E181A;
}
<input type="checkbox" class="wrapper-state" id="post-wrap" />
<input type="checkbox" class="first-state" id="post-1" />
<input type="checkbox" class="second-state" id="post-2" />
<input type="checkbox" class="third-state" id="post-3" />
<input type="checkbox" class="fourth-state" id="post-4" />
<input type="checkbox" class="fifth-state" id="post-5" />
<input type="checkbox" class="sixth-state" id="post-6" />
<input type="checkbox" class="seventh-state" id="post-7" />
<input type="checkbox" class="eight-state" id="post-8" />
<input type="checkbox" class="nine-state" id="post-9" />
<input type="checkbox" class="ten-state" id="post-10" />
<p>What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type
specimen book.</p>
<hr />
<label for="post-wrap" class="wrapper-trigger"></label>
<div class="wrapper-wrap">
<span class="wrapper-target">
<div class="first-wrap">
<span class="first-target">
<p>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</span>
</div>
<label for="post-1" class="first-trigger"></label>
<hr />
<div class="second-wrap">
<span class="second-target">
<h3>Why do we use it?</h3>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.</p>
</span>
</div>
<label for="post-2" class="second-trigger"></label>
<hr />
<div class="third-wrap">
<span class="third-target">
<p>Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</span>
</div>
<label for="post-3" class="third-trigger"></label>
<hr />
<div class="fourth-wrap">
<span class="fourth-target">
<img src="https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" height="auto" width="250px" />
</span>
</div>
<label for="post-4" class="fourth-trigger"></label>
<hr />
<div class="fifth-wrap">
<span class="fifth-target">
<iframe src="https://www.youtube.com/embed/vNJnOfyhweo" frameborder="0" tabindex="-1" allowfullscreen></iframe>
</span>
</div>
<label for="post-5" class="fifth-trigger"></label>
<hr />
<div class="sixth-wrap">
<span class="sixth-target">
<h1>Where does it come from?</h1>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</p>
</span>
</div>
<label for="post-6" class="sixth-trigger"></label>
<hr />
<div class="seventh-wrap">
<span class="seventh-target">
<p>Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</span>
</div>
<label for="post-7" class="seventh-trigger"></label>
<hr />
<div class="eight-wrap">
<span class="eight-target">
<p>The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.</p>
</span>
</div>
<label for="post-8" class="eight-trigger"></label>
<hr />
<div class="nine-wrap">
<span class="nine-target">
<p>The nine riders......</p>
</span>
</div>
<label for="post-9" class="nine-trigger"></label>
<hr />
<div class="ten-wrap">
<span class="ten-target">
<p>OMFG... Finally at the end!</p>
</span>
</div>
<label for="post-10" class="ten-trigger"></label>
<hr />
</span>
</div>
<label for="post-wrap" class="wrapper-trigger2"></label>
<div class="clearer"></div>
最佳答案
当我提出问题时,我一直在研究解决方案。
请找到有问题的片段作为工作解决方案。
关于html - 纯 CSS - 几个 阅读更多 阅读更少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51972655/
我一直在使用 less 进行前端开发,但最近几天我遇到了这个错误。 我正在使用 PhpStorm 的观察器将 less 文件编译为 css 文件。但是当我编辑 less 文件时,编译器将这一行添加到
我在互联网上搜索Erlang的流程模型并找到了一些图表 slides 3-4在乔·阿姆斯特朗的一次演讲中。它们显示了 Erlang、java 和 C# 之间进程创建和消息传递时间之间的许多差异。谁能告
我怎样才能用更少的钱创建这个类? .class { display: none; } a:hover .class { display: block; } 最佳答案 像这样? .cla
全部,我有一些代码在 less 中做一个循环。但是如果我把px改成'%',less就不能编译less文件。我该怎么做呢?谢谢。 @iterations: 100; // helper class, w
According to the docs如果我做类似的事情: .child, .sibling { .parent & { color: black; } &
这是一个现有的通用 css 规则(原始文件): .caption-top { color: red; } 这是示意图,因为在现实生活中,我需要根据上下文将 .caption-top 选择器变成其他
所以问题是我想连接到msaccess 数据库,每次打开它时都有密码。 如果我直接打开 Access 文件,密码就有效。 如果我删除密码,我可以建立连接,这意味着如果不涉及密码,我的代码可以工作 密码是
news.less 看起来像这样; @import: "libs/base.less" base.less 看起来像这样; @import "colors.less"; @
当我在这里使用 WINLess 编译这段代码时出现错误: .icon-text-shadow (@icon-text-shadow: 0.0625rem 0.0625rem rgba(132, 108
我正在处理大型矩阵,例如 Movielens 20m dataset .我重组了在线文件,使其与页面上提到的尺寸(138000 x 27000)相匹配,因为原始文件包含的索引更大(138000 x 1
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我是 Android 新手,刚来这里。 我只知道 Bitmap 逐像素存储图像并且不进行任何压缩。 Drawable和Bitmap一样吗? 或者 同样的图片文件,Drawable 比 Bitmap 占
我是一名前端开发人员,最近考虑使用 SASS 或 LESS 进行 CSS 开发。 不过,我不使用 Ruby,也不想依赖于使用 JavaScript 的用户。有没有人对使用 PHP 项目使用 SASS
我需要将日历添加到表单中。 我想安装这个项目: https://github.com/vitalets/bootstrap-datepicker 但据说: 某些样式需要 Bootstrap 的下拉组件
如果您运行如下代码: length(unique(runif(10000000))) length(unique(rnorm(10000000))) 你会看到只有大约 99.8% 的 runif 值是
我正在这样做Question首先使用 PriorityQueue 解决了这个问题:- public ArrayList solve(int A, int B, int C, int D) {
基本上就是标题所说的。我知道如果我只有一个字母,我可以使用 char 作为类型,但我需要 2 个字母的数据类型,例如“XY”。有没有比字符串使用更少存储空间(位)或更小的东西?或者多个字母通常只是保存
我有两个表,用户表和程序表。现在我只有 5-10 个计划和数以万计的用户,他们可以注册任何一个计划(也可以注册多个计划)。因此,在多对多关系的情况下,我正在考虑创建一个单独的表,例如 link_use
我们有一个基于 LESS 的样式表,我们希望为其生成多种颜色变化。我们已经定义了一个包含颜色变化(现在为 blue.less)的包含文件,并希望生成和使用该包含文件的绿色和红色变化。 我们想要做的是通
我想知道我是否可以改进我的 LESS-Snippet。我有很多带有颜色名称的变量/我自己的颜色标题和相关的前景和背景颜色。我根据我的颜色定义类名称。 @logocolorgreen: #40FF01;
我是一名优秀的程序员,十分优秀!