Numbers can make the container expand and cannot wrap automatically according to the size of the container. Here is how to wrap them with CSS!
For div
1. (IE browser) white-space:normal; word-break:break-all; The former here follows the standard. #Wrap {White-SPACE: NORMAL; Width: 200px;}
or
#wrap {Word-Bream: Bream-ALL; width: 200px;}
& lt; div id = "wrap" & gt; 111111111111111111111111111111 & lt;/ div>
Effect: Line breaks can be achieved
2. (Firefox browser) white-space:normal; word-break:break-all;overflow:hidden; There is no good implementation method under the same FF, only Hide or add scroll bars, of course the effect is better without adding scroll bars!
Effect: The container is normal and the content is hidden
For table
1. (IE browser) use the style table-layout:fixed;
abcdefghigklmnopqrstuvwxyz 1234567890
< /tr>
Effect: You can wrap lines
2. (IE browser) Use the style table-layout: fixed and nowrap
.tb {table-layout:fixed}
abcdefghigklmnopqrstuvwxyz 1234567890
< ; /table>
Effect: can wrap lines
3. (IE browser) use the style table-layout:fixed and nowrap when using percentage to fix the td size
.tb{table-layout:fixed }
abcdefghigklmnopqrstuvwxyz 1234567890
abcdefghigklmnopqrstuvwxyz 1234567890
Effect: Both tds wrap normally
4. (Firefox browser) Use style table when using percentage to fix td size -layout:fixed and nowrap, and use div
.tb {table-layout:fixed}
.td {overflow:hidden;}
abcdefghigklmnopqrstuvwxyz 1234567890
< div>abcdefghigklmnopqrstuvwxyz 1234567890 There is no good way to wrap container content under FF. You can only use overflow to hide the extra content so as not to affect the overall effect)
For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-
There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.
To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.
Answer: You can use the date picker component of Bootstrap to view dates in the page. Steps: Introduce the Bootstrap framework. Create a date selector input box in HTML. Bootstrap will automatically add styles to the selector. Use JavaScript to get the selected date.
There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.
To verify dates in Bootstrap, follow these steps: Introduce the required scripts and styles; initialize the date selector component; set the data-bv-date attribute to enable verification; configure verification rules (such as date formats, error messages, etc.); integrate the Bootstrap verification framework and automatically verify date input when form is submitted.
Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.