css 这是我对内森萎缩头球的替代方案
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 这是我对内森萎缩头球的替代方案相关的知识,希望对你有一定的参考价值。
<div class="hero-image">
<div class="header"> <a href="<?php echo home_url(); ?>" title="Home" alt="Logo"><img class="logo" src="<?php echo home_url(); ?>/wp-content/uploads/Arete-Logo.png" alt="Home" /></a>
<?php wp_nav_menu( array( 'menu' => 'top menu', 'menu_class' => 'builder-module-navigation') ); ?>
</div>
<div class="hero-text">
<h1 class="text-center white shadow" style="clear:both;">Welcome to Arete Homes Colorado</h1>
<h2 class="text-center white shadow">Providing exceptional home value for over two decades</h2>
[custom-button url="" title="Request Information" class="orange-button-sm-shadow block-center popmake-46" icon="" ]
</div>
</div>
jQuery(function( $ ){
$(window).scroll(function () {
if ($(document).scrollTop() > 200 ) {
$('.header, .logo').addClass('shrink');
} else {
$('.header, .logo').removeClass('shrink');
}
});
});
.header {
background-color:rgba(255, 255, 255, 0.7);
position: fixed;
width: 100%;
z-index: 1;
}
/* Second Module Offset */
.hero-text {
padding-top: 200px;
}
/* Header Logo */
.logo {
height: 100px !important;
width: auto;
margin: 20px 0 10px 30px;
float:left;
}
@media (max-width: 1041px){
.logo{
float:none;
display:block;
margin:20px auto;
}
}
/* Horizontal Header from Custom Menu Widget */
#menu-main-nav {
text-align: right;
}
ul#menu-main-nav li{
/*float: left;
margin-top: 40px;
padding-left: 20px;
padding-right: 10px;*/
transition: all 0.25s ease-in-out 0s;
}
ul#menu-main-nav li a {
color: #333;
font-family:'Prata', serif;
font-size: 1em;
letter-spacing: 1px;
text-shadow: none;
text-decoration: none;
}
ul#menu-main-nav li a:hover {
color: #199AEA;
}
/* Shrinking Effects */
.logo.shrink {
height: 75px !important;
width: auto;
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
-o-transition: all .15s linear;
transition: all .15s linear;
}
.shrink .builder-module-sidebar .widget-background-wrapper {
margin-bottom: .5em !important;
}
.header.shrink{
background-color:rgba(255, 255, 255, 1);
box-shadow: 0px 0px 10px #999;
}
.shrink ul#menu-main-nav {
margin-left: 100px;
}
.shrink ul@menu-main-nav li {
margin-top: 10px;
}
.shrink ul#menu-main-nav li a {
font-size: 1em;
}
/* CSS Transitions for Header Items */
.logo,
.logo.shrink,
.header,
.shrink ul#menu-main-nav li a,
.shrink ul#menu-main-nav,
ul#menu-main-nav,
ul#menu-main-nav li a,
ul#menu-main-nav li a:hover, .shrink ul#menu-main-nav li a,
.shrink ul#menu-main-nav,
ul#menu-main-nav,
ul#menu-main-nav li a,
ul#menu-main-nav li a:hover {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
-o-transition: all .15s linear;
transition: all .2s linear;
}
.builder-module-navigation{
margin-top: 40px;
}
以上是关于css 这是我对内森萎缩头球的替代方案的主要内容,如果未能解决你的问题,请参考以下文章
css 固定位置不适用于CSS中的bg大小覆盖。这是使用jQ的替代方案
CSS 媒体查询 - 软键盘打破 css 方向规则 - 替代解决方案?
私有云市场萎缩?那OpenStack怎么办
绿茵场上的数据可视化 | 现役最强26位头球手,每人一张雷达图
我对这种重复的替代解决方案是不是正确?
CSS加号选择器的CSS替代品?