CSS weight button effect


 

    <template>
      <view class="cont">
        <div class="container">
          <div class="pane">
            <!-- 选项1 -->
            <label class="label" @click="handleOptionClick(0)"
              :style="{ color: selectedOption === 0 ? youu : '', background: selectedOption === 0 ? youuu : '', fontWeight: selectedOption === 0 ? 'bold' : 'normal' }">
              <span>你</span>
              <input id="left" class="input" name="radio" type="radio">
            </label>
            <!-- 选项2 -->
            <label class="label" @click="handleOptionClick(1)

Guess you like

Origin blog.csdn.net/weixin_54226053/article/details/135425869