gpt4 book ai didi

html - 从 Material 设计中的 .mdl-layout__drawer-button 中删除外边框线?

转载 作者:太空宇宙 更新时间:2023-11-03 20:31:13 24 4
gpt4 key购买 nike

我想移除 .mdl-layout__drawer-button 的外边框。当我点击它时,它会显示外方框。我指的是 this site .
下面是它的代码和截图:

This is the Image when i left click on it or right click it will display the sqaure box

<!-- Uses a transparent header that draws on top of the layout's background -->
<style>
.demo-layout-transparent {
background: url('../assets/demos/transparent.jpg') center / cover;
}
.demo-layout-transparent .mdl-layout__header,
.demo-layout-transparent .mdl-layout__drawer-button {
/* This background is dark, so we set text to white. Use 87% black instead if
your background is light. */
color: white;
}
</style>

<div class="demo-layout-transparent mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout__header--transparent">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Title</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation -->
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
<a class="mdl-navigation__link" href="">Link</a>
</nav>
</div>
<main class="mdl-layout__content">
</main>
</div>

最佳答案

添加到您的 mdl-layout__drawer-button 类:

outline: none;

关于html - 从 Material 设计中的 .mdl-layout__drawer-button 中删除外边框线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41694390/

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