Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of Css conflict between Bootstrap and UEditor

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to solve the Css conflict in Bootstrap and UEditor", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to solve the Css conflict in Bootstrap and UEditor" article.

UEditor component is a set of open source web online WYSIWYG rich text editor provided by Baidu. It is lightweight, customizable, and pays attention to user experience. Based on the MIT protocol, it is very powerful. Recently, in the process of use, it is found that the uploaded pictures (or inserting existing emoji pictures) cannot be scaled properly. Select the picture, click and drag the small label on the edge of the picture with the mouse, and the picture can only be scaled out but not enlarged. Tried a lot of methods are unable to solve, and even checked the js source code, and did not find any anomalies.

Influential css in Bootstrap:

*,

*: before

*: after {

-webkit-box-sizing: border-box

-moz-box-sizing: border-box

Box-sizing: border-box

}

We just need to redefine css on the page to override the above styles in Bootstrap, such as:

.edui-container * {

-webkit-box-sizing: content-box

-moz-box-sizing: content-box

Box-sizing: content-box

}

.edui-container *: before

.edui-container *: after {

-webkit-box-sizing: content-box

-moz-box-sizing: content-box

Box-sizing: content-box

}

* .edui-container is the css class used on the parent element that references the UEditor component.

The above is about the content of this article on "how to solve the Css conflict in Bootstrap and UEditor". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report