1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <div class="btn_sub">
- <button> 提交</button>
- </div>
- </template>
- <script>
- export default{
- data(){
- return {
- msg:''
- }
- },
- methods:{
- addClass: function(index){
- this.current=index; // 不能要引号
- }
- },
- }
- </script>
-
- <style>
- .btn_sub{
- width: 100%;
- padding: 0 1.5rem;
- }
- .btn_sub button{
- border-radius: 0.4rem;
- height: 4rem;
- line-height: 4rem;
- text-align: center;
- width: 100%;
- background-color: #ff5c5c;
- outline: none;
- border: 0;
- color: #fff;
- font-size: 1.6rem;
- }
- </style>
|