如何修复中途工作的CSS课程



我有一个可以在中途使用的CSS类,也就是说,它看不到background-colortext-decoration,但其余的都看到了。

这是我的CSS类:

btn-group button {
  background-color: "#77DD77";
  text-decoration: "line-through";
  border: 1px solid green; /* Green border */
  color: white; /* White text */
  padding: 10px 24px; /* Some padding */
  cursor: pointer; /* Pointer/hand icon */
  width: 50%; /* Set a width if needed */
  display: block; /* Make the buttons appear below each other */
}

这是我的html:

 <div class="btn-group">
     <ul>
          <todo-item
          v-if="item.clicked==true"
          v-for="item in groceryList"
          v-bind:todo="item"
          v-bind:key="item.id"
          ></todo-item>
     </ul>
 </div>

尝试以下:

.btn-group button {
  background-color: #77DD77;
  text-decoration: line-through;
  border: 1px solid green; /* Green border */
  color: white; /* White text */
  padding: 10px 24px; /* Some padding */
  cursor: pointer; /* Pointer/hand icon */
  width: 50%; /* Set a width if needed */
  display: block; /* Make the buttons appear below each other */
}

最新更新