This article mainly introduces the method of CSS layout of two buttons on the left and right sides of the same parent tag, and shares it with you. The details are as follows: Rendering Layout Code <view class="grace-footer" style="width:100%;" slot="gFooter"> <view style="float:right;width:50%"> <button type="primary" style="line-height: 85rpx; margin: 25rpx; " @click="saveService(scanKay,tableList)">Submit</button> </view> <view style="float:left;width:50%"> <button type="warn" style="line-height: 85rpx; margin: 25rpx;" @click="removeService()">Reset</button> </view> </view> grace-footer is the CSS code introduced by GraceUI. Its effect is the bottom navigation .grace-footer{ position:fixed; z-index:2; left:0; bottom:0; background:#FFFFFF; width:750rpx; overflow:hidden; box-shadow:1px 1px 6px #888; } This is the end of this article about the CSS layout method of distributing two buttons on the left and right sides of the same parent tag. For more related CSS two buttons on the left and right sides of the same parent tag, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: Set the input to read-only via disabled and readonly
>>: New usage of watch and watchEffect in Vue 3
Table of contents 1. Core 1. Get the Dom node 2. ...
Table of contents 1. Introduction 2. Several ways...
Yesterday I wanted to use a:visited to change the...
mysql records time-consuming sql MySQL can record...
1. Create a new virtual machine from VMware 15.5 ...
Preface After a long time of reading various mate...
I have read countless my.cnf configurations on th...
Because some dependencies of opencv could not be ...
The <base> tag specifies the default addres...
animation Define an animation: /*Set a keyframe t...
For several reasons (including curiosity), I star...
Block element p - paragraph pre - format text tabl...
Getting Started with JavaScript JavaScript is a l...
Table of contents Preface Style Function Descript...
Table of contents 1. Function debounce 1. What is...