the block element is fluid (normally)
button
is not a block element, so it does not have
display:block
just to make the element appear as a block element. To put it bluntly, it is to wrap the line
display:block
is not equal to block element
, so it cannot be full.
personal opinion
this is determined by the specification
for block-level replacement elements
The used value of 'width' is determined as for inline replaced elements. Then the rules for non-replaced block-level elements are applied to determine the margins.The
width is still calculated as an inline element, but the margin is calculated as a block-level element. The default auto is generally its intrinsic value, and the width of the button
element may be the width of its inner font, plus the default inner margin and the width of the border
while ordinary block-level elements have fluid properties because when their width is auto
'margin-left' +' border-left-width' + 'padding-left' +' width' + 'padding-right' +' border-right-width' + 'margin-right' = width of containing block
Next: No values are printed out during the implementation of the sequence table. Where is the problem?
use series [I]-graph.data [I] .name can be displayed normally, but do not want to use name. returned data format: [ { "mName":"", "depth":2, "name":"", ...
The height of td is stretched by the height of other td, so the work schedule cannot be centered vertically. ...
how to make the content of table not be centered vertically? you can set valign= "top " in html, then how to set it in element The table is centered vertically when it is stretched out, and the working hours are aligned with the one at 8 o clock . ...
div1 {display: none} div2 {display: none} div3 {display: none} div4 {display: none} div5 {display: none} setTimeout (function) { var obj=document.getElementById ( "div1 "); obj.style.display= "inline "; }, 2000) how to display with settimeout...
in the official document, navigationbartitletext can only set the properties of the top bar in the json settings file. Under real machine debugging, the top bar text automatically runs to the far left side of the phone. How to set the top bar to center l...
I haven t done it. I want to know what the train of thought is . Does first store each section structure as a string, then scroll to the specified location, and execute the following code? is similar to paging loading, but the content and layout of ...
For uploading pictures on ant design mobile, how to display only one upload selector? as soon as you use it, four will come out. complement: `< ImagePicker files={files} onChange={this.onChange} onImageClick={(index, fs) => console.log(in...
< html lang= "en " > < head > <meta charset="UTF-8"> <title>Document< title> <script type="text javascript" src="vue.js">< script> <script type="text javascript" src="vue...
I have registered the same losing focus event function for each Input, and passed some unique parameters. If I just execute the event function, I can t get these parameters, and I want to trigger all of them. Is there any good way to do this? ...
which mobile adaptation method is better for a company to make an app,h5 page with an Android built-in H5 page? ...
typesetting on the computer is full of pages, on the mobile phone, the font has become smaller, there is a lot of white space below. css attribute font-size:12px; how can I make the text on my computer and on my phone the same size? page heade...
excuse me, what s going on? Am I missing something? ...
newJson subNames: [ Code ...
I wrote a page to swipe up and down the page, and when I put my finger in the div range with content in the middle, I disabled the touchmove event, using { e.preventDefault() ...
this is your own. When you move, the direction of the element remains the same and will not rotate with the direction of the line ....
are all 100% wide! In the picture above, 7p solve ...
as shown in the figure, we have a requirement that we will embed a large number of different lengths of DIV2, in DIV1 (similar to a viewport). I need to know the distance from the top edge of the DIV2 to the top of the viewport (x), and the distance fro...
...
when clipping an image with cropper.js on the ios mobile end, the image returned is black when the uploaded picture is larger than 6m. Cropper.js v1.3.5 (cropper version) https: github.com fengyuanch. ...
The list uses the switch component in elementUI status is a field returned by the background, which is fine. the on state is 1 and the off state is 0, but the switch does not correspond here and cannot be displayed here. the code is as follows:...