gpt4 book ai didi

html - 降低页眉高度

转载 作者:行者123 更新时间:2023-11-28 06:15:52 25 4
gpt4 key购买 nike

我使用名为“Artisteer”的软件创建了一个响应式网站。我创建了一个高度稍长的标题,并有一个实际上是 'text' 的 Logo 。它在桌面浏览器中运行完美,但在移动浏览器中,标题感觉太长了。我试图通过更改响应代码中 header 的高度来缩短它,它起作用了。但 Logo (实际上是文本)仍在其原始位置。我想减少页眉顶部和 Logo 之间的距离。我尝试更改 .art-headline 和 .art-slogan 中的值,但似乎没有用。

这是我改变header高度时的截图 enter image description here

这是实际的响应 View http://www.responsinator.com/?url=www.secondgf.com%2F

这是响应式编码

/* Created by Artisteer v4.3.0.60745 */
.responsive body
{
min-width: 240px;
}
.responsive img
{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.responsive .art-content-layout img,
.responsive .art-content-layout video
{
max-width: 100%;
height: auto !important;
}
.responsive.responsive-phone .art-content-layout img
{
margin: 1%;
}
.responsive.responsive-phone .art-collage,
.responsive.responsive-tablet .art-collage {
margin: 0 !important;
}
.responsive .art-content-layout .art-sidebar0,
.responsive .art-content-layout .art-sidebar1,
.responsive .art-content-layout .art-sidebar2
{
width: auto !important;
}
.responsive .art-content-layout,
.responsive .art-content-layout-row,
.responsive .art-layout-cell
{
display: block;
}
.responsive .art-content-layout,
.responsive .art-content-layout-row
{
padding: 0;
}
.responsive .image-caption-wrapper
{
width: auto;
}
.responsive.responsive-tablet .art-vmenublock,
.responsive.responsive-tablet .art-block
{
margin-left: 1%;
margin-right: 1%;
width: 48%;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.responsive .art-responsive-embed
{
height: 0;
padding-bottom: 56.25%;
/* 16:9 */
position: relative;
}
.responsive .art-responsive-embed iframe,
.responsive .art-responsive-embed object,
.responsive .art-responsive-embed embed
{
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.responsive .art-header
{
width: auto !important;
max-width: none !important;
min-height: 100px !important;
min-width: 0 !important;
margin-top: 2%;
text-align: center;
}
.default-responsive .art-header
{
height: auto;
}
.default-responsive .art-header *
{
position: relative;
text-align: center;
-webkit-transform: none !important;
-moz-transform: none !important;
-o-transform: none !important;
-ms-transform: none !important;
transform: none !important;
}
.default-responsive .art-header .art-headline,
.default-responsive .art-header .art-slogan
{
display: block !important;
top: 0 !important;
left: 0 !important;
margin: 2% !important;
text-align: center !important;
}
.default-responsive .art-header .art-headline a,
.default-responsive .art-header .art-slogan
{
white-space: normal !important;
}
.default-responsive .art-header .art-logo
{
display: inline-block;
margin: auto !important;
left: auto;
top: auto !important;
width: auto;
height: auto;
}
.responsive .art-header .art-slidenavigator
{
position: absolute;
}
.default-responsive .art-header .art-positioncontrol
{
display: block !important;
position: relative !important;
top: auto !important;
right: auto !important;
bottom: auto !important;
left: auto !important;
margin: 2% auto !important;
width: auto !important;
height: auto !important;
}
.responsive .art-header #art-flash-area
{
display: none;
}
/* Search and other elements in header element directly */
.default-responsive .art-header>.art-textblock
{
position: relative !important;
display: block !important;
margin: 1% auto !important;
width: 75% !important;
top: auto !important;
right: auto !important;
bottom: auto !important;
left: auto !important;
}
.default-responsive .art-header .art-textblock
{
position: relative !important;
display: block !important;
margin: auto !important;
left: 0 !important;
right: 0 !important;
top: auto !important;
height: auto !important;
width: auto;
background-image: none;
}
/* '.art-header *' used noram align, but for '.art-textblock *' we must force align because of preview */
.responsive .art-header .art-textblock *
{
text-align: center !important;
}
.default-responsive .art-header .art-shapes > .art-textblock,
.default-responsive .art-header .art-slide-item > .art-textblock
{
display: none !important;
}
.default-responsive .art-header .art-shapes > .art-textblock *
{
text-align: center !important;
width: auto !important;
height: auto !important;
display: block;
}
.default-responsive .art-header .art-slider .art-textblock *
{
text-align: center !important;
width: auto !important;
height: auto !important;
display: block;
}
/* For icons like facebook, rss, etc. */
.responsive .art-header>.art-textblock>div
{
width: 100%;
}
.responsive .art-sheet
{
width: auto !important;
min-width: 240px !important;
max-width: none !important;
margin-right: 1% !important;
margin-left: 1% !important;
margin-top: 1% !important;
}
#art-resp {
display: none;
}
@media all and (max-width: 1009px)
{
#art-resp, #art-resp-t { display: block; }
#art-resp-m { display: none; }
}
@media all and (max-width: 480px)
{
#art-resp, #art-resp-m { display: block; }
#art-resp-t { display: none; }
}
#art-resp-desktop {
display: none;
}
#art-resp-tablet-landscape {
display: none;
}
#art-resp-tablet-portrait {
display: none;
}
#art-resp-phone-landscape {
display: none;
}
#art-resp-phone-portrait {
display: none;
}
@media (min-width: 1200px)
{
#art-resp-desktop { display: block; }
}
@media (min-width: 980px) and (max-width: 1199px)
{
#art-resp-tablet-landscape { display: block; }
}
@media (min-width: 768px) and (max-width: 979px)
{
#art-resp-tablet-portrait { display: block; }
}
@media (min-width: 480px) and (max-width: 767px)
{
#art-resp-phone-landscape { display: block; }
}
@media (max-width: 479px)
{
#art-resp-phone-portrait { display: block; }
}
.responsive .art-content-layout,
.responsive .art-content-layout-row,
.responsive .art-layout-cell
{
display: block;
}
.responsive .art-layout-cell
{
width: auto !important;
height: auto !important;
}
.responsive .art-content-layout:after,
.responsive .art-content-layout-row:after,
.responsive .art-layout-cell:after
{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.responsive .responsive-tablet-layout-cell,
.responsive.responsive-tablet .art-footer .art-content-layout .art-layout-cell
{
margin: 1%;
width: 98% !important;
float: left;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.responsive .responsive-layout-row-2 .responsive-tablet-layout-cell,
.responsive.responsive-tablet .art-footer .art-content-layout .responsive-layout-row-2 .art-layout-cell
{
width: 48% !important;
}
.responsive .responsive-layout-row-3 .responsive-tablet-layout-cell,
.responsive.responsive-tablet .art-footer .art-content-layout .responsive-layout-row-3 .art-layout-cell
{
width: 31% !important;
}
.responsive .art-post
{
border-radius: 0;
}
.responsive .art-footer-inner
{
min-width: 0;
}

最佳答案

添加此 CSS 行: .social { position:absolute; }.social { position : fixed; }

它会将此栏放在文档“外部”以删除您看到的边距。

如果向下滚动,“固定”位置将在同一位置显示此栏。

如您所说,要在手机和平​​板电脑中禁用它,您可以这样做:

.responsive.responsive-tablet .social { display: none; } .responsive.responsive-phone .social { display: none; }

关于html - 降低页眉高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35899034/

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