div,div,csstransform:scale,transform-origin:left
,div,,,...
div,css,js,(vuedemo)
this is without transform-origin:left. Less centered and weirder.
div,div,csstransform:scale,transform-origin:left
,div,,,...
div,css,js,(vuedemo)
this is without transform-origin:left. Less centered and weirder.
isn't the transform-origin: left
in your CSS just not going to center it?
Hello, open DEMO to change the width and height of any element in the console, which will be centered. I hope it will be helpful to you!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
position: absolute;
width: 300px;
height: 300px;
background-color: red;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="box"></div>
</body>
</html>
I don't know what you're going to do.
will you center an element first? Well, I thought you would
for simplicity, I used this to center left:0;right:0;top:0;bottom:0;
what is the reason for the jitter in the pop-up box (dialog), page using element-ui? ...
how to design the arrow style when clicking. ...
...
I want to set the maximum width for this column so that it can change with the number of pictures, not in space. Is there any way to set the maximum width of the column, or to achieve the effect I want. Ask the bosses for guidance, Orz thank you very...
ul { display: table; content: ""; &:after { sass less clear: both; } li { float: left; } }...
if the styles I wrote in a component when I was developing locally, some of the styles in the component will affect the global or other page styles if they are compressed and viewed online. Is there a solution ...
the vue sub-component is a pop-up box, which has a mask layer, but the mask layer can only cover the height of the screen, not the excess document height. this.$el.clientHeight if you use the above syntax in mouted, you can only get the screen height....
what you want to achieve is with a large frame outside. There is a div inside . this div is a scrollView that scrolls up and down. there is a button that clicks to add a module to the div. but the scroll bar does not move at this time. you want to ...
problem description now you can get the emergence animation and disappearance animation of div from the background, and the common switching mode of ppt. How to dynamically add this toggle animation the environmental background of the problems and w...
new Vue({ el: -sharpindex , data: { UserSetting:null }, mounted: function() { var _this = this; var IMEI = plus.device.imei; mui.ajax( ht...
the questions are as follows: through < router-view >, load a vue component, < router-view > is placed in a tab panel, how to set to achieve if the tab page size is small, < router-view > has extra content, through the scroll bar to achieve, just like...
...
problem description RT wants to set up two different front-end projects to access different static resources, but does not know how to set them, for example, wechat accesses css and js files under the wechat path manager accesses css and js files un...
this is the first view view view0 what I want to make is that when the button is clicked, the content is displayed corresponding to the button. ...
1, build the project according to his official API method, and then use the component result page in it to be blank. the following template is the test template, which is copied directly to the official. Is there a problem with any step ...