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
2D transformations in CSS allow us to perform som...
Table of contents JS reads file FileReader docume...
These two attributes are often used, but their di...
Often you will encounter a style of <a> tag ...
Table of contents Partitioning mechanism SELECT q...
Content 1. Give readers a reason to stay. Make the...
Phenomenon: Change the div into a circle, ellipse...
Preface Believe me, as long as you remember the 7...
The legend component is a commonly used component...
Table of contents Overview definition Instance Me...
Let's talk about the difference first last, t...
Since this is my first post, if there are any mis...
Table of contents 1. Check whether the docker env...
Preface: In Vue, props can be used to connect ori...
In the MySQL database, after tables are associate...