English 中文(简体)
因*{边:0} 每一页的不动产而引发的燃烧
原标题:problerm creating due to *{margin:0 auto} property in every page
  • 时间:2023-09-16 00:44:30
  •  标签:
  • reactjs

*-margin:0 auto}这一财产在我的所有反应页面和部件上自动适用,即使不是进口 包含这一财产的卷宗*-margin:0 auto}

问题回答

CSS 规则*{margin:0 ;}将影响整个申请,而不仅仅是进口的部件或文件,因为星号< (*)> <<>>>> 称为CSSuniversal selectedors。 当我们想选择网页上的所有内容时,这名选择者是有用的。

如果你只想对特定组成部分或要素适用风格,那么你应当<代码>,避免使用* 选择/<>代码,而是将风格直接应用到你想要风格的具体组成部分或内容。

Reference Link: https://www.geeksforgeeks.org/what-is-the-use-of-asterisk-selector-in-css/





相关问题
How to use one react app into another react app?

I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...

how to get selected value in Ant Design

I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...

热门标签