当我在代码中使用一个部分时,它会在线获取一些css属性,因为我无法编辑它们,也不会对outerhtml中的任何更改产生任何影响。我需要删除位置绝对属性。
position: absolute;
display: block;
left: 0%;
opacity: 1;
transform: scale(1);
发布于 2018-08-09 15:27:52
如果要覆盖任何Bootstrap元素样式的默认值,则必须确保在html代码中首先使用引导样式表,然后再使用自定义样式表。
例:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
...
</body>
</html>
另外,如果你注意到Bootstrap样式中的!important标志,则应将其放在代码中,以获得与Bootstrap相同的样式属性。
我看不到你的所有代码,但是你发布的代码:
position: absolute;
display: block;
left: 0%;
opacity: 1;
transform: scale(1);
可以被覆盖为:
position: static;
left: auto;
transform: none;
发布于 2018-08-09 16:37:02
你可以尝试使用!important attritube来获取这些功能,一些浏览器加载项可能是原因。
https://stackoverflow.com/questions/-100002046
复制相似问题