gpt4 book ai didi

html - 如何删除另一个 div 中 div 的样式 css?

转载 作者:行者123 更新时间:2023-11-28 05:46:14 25 4
gpt4 key购买 nike

我的 css 有点问题。

我有一个带有 css 的,它是由另一个 .我无法更改 css 文件。

我需要删除这个样式。有可能吗?

<div class="1">

#Generated by code
<div class="2" style="xxxxxxxx">
This text is bold now. Cause of the style. I need normal!
</div>
#Generated by code

</div>

有什么我可以做的吗??

谢谢你:)

最佳答案

为什么不使用 javascript?

<body onload="myFunction()">

<div class="1">

#Generated by code
<div class="2" style="xxxxxxxx">
This text is bold now. Cause of the style. I need normal!
</div>
#Generated by code

</div>

<script>

function MyFunction
{
document.getElementsByClassName("2").style.blabla;
}

</script>

甚至使用

<style>
.2
{
width:50px;
}
</style>

?

关于html - 如何删除另一个 div 中 div 的样式 css?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37587880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com