您好,我正在研究一个需要修改的 wordpress 主题。我没有编写主题代码。只是编辑它,但我没有尝试制作 wordpress 主题。我虽然了解一些代码。我想要的是导航留在页面顶部。它适用于页面的其他部分,但本部分带有图像 slider :
您看,导航栏位于 slider 下方。我什至尝试将导航 div 移动到 slider div 上方:这是代码:
$args = array(
'post_type' => 'rdc_home',
);
query_posts( $args );
// The Loop
if ( have_posts() ) :
while (have_posts()) :
//the post for declaration
the_post();
?>
 ); ?>)
endwhile;
endif;
wp_reset_query();
?>
$args = array(
'post_type' => 'rdc_home',
);
query_posts( $args );
// The Loop
if ( have_posts() ) :
while (have_posts()) :
//the post for declaration
the_post();
?>
endwhile;
endif;
wp_reset_query();
?>
slider 和导航的 CSS
.slider-content{
chiều cao: 100%;
trái: 0;
vị trí: tuyệt đối;
trên cùng: 0;
chiều rộng: 100%;
}
.home_area{
vị trí: tương đối;
z-index:99999;
}
.one-by-one-slider-nav {
margin-top: -100px;
z-index: 2147483647;
}
.slider{height:850px;}
.shp-1,.shp-2,.shp-3,.shp-11,.shp-12,.shp-13, .shp-14{
hiển thị:khối;
căn chỉnh văn bản:giữa;
chiều rộng: 100%;
}
.slider-heading p{
cỡ chữ: 14px;
line-height:24px;
font-weight:600;
width:40%;
lề:0 tự động;
text-shadow:2px 2px 2px rgba(0,0,0,.5);
}
.shp-3{
hiển thị: khối nội tuyến;
}
.slides{
vị trí: tuyệt đối;
}
.shp-1 {
trên cùng: 0%;
}
.shp-2{
top:20%;
}
.shp-3{
top:35%;
}
.shp-11 {
top:10%;
}
.shp-12{
trên cùng: 30%;
}
.shp-12 p{
width:60%;
font-size:18px;
line-height:30px;
}
.shp-13{
top:53%;
}
.shp-14{
top:70%;
}
.slider-ir0{
bottom:-5px;
left:20%;
}
.slider-ir1{
bottom:-5px;
trái: 50%;
margin-left:-110px;
}
.slider-ir2{
bottom:-5px;
right:20%;
}
.slider-is1{
trái: 50%;
bottom:270px;
margin-left:-215px;
}
.slider-is2{
right:50%;
bottom:270px;
margin-right:-215px;
}
.slider-is3{
trái: 50%;
bottom:170px;
margin-left:-215px;
}
.slider-is4{
right:50%;
bottom:170px;
margin-right:-215px;
}
.slider-ig1{
right:50%;
bottom:220px;
margin-right:215px;
}
.slider-ig2{
right:50%;
bottom:220px;
margin-right:15px;
}
.slider-ig3{
trái: 50%;
bottom:220px;
margin-left:15px;
}
.slider-ig4{
trái: 50%;
bottom:220px;
margin-left:215px;
}
.slider a.btn-remore{
background:#da0848;
color:#fff !important;
}
.navigation_1 {
vị trí: tuyệt đối;
chiều rộng: 100%;
đáy: 0;
trái: 0;
cỡ chữ: 14px;
text-transform:uppercase;
font-weight:700;
}
.navbar {
border-radius:0px;
lề dưới: 0px;
}
.navbar {
border: 0px solid;
}
.navbar-brand{
text-transform:uppercase;
}
.affix{
vị trí: cố định;
đỉnh: 0;
chiều cao:50px;
z-index:2147483646;
}
.web-logo {
vị trí: tuyệt đối;
chỉ số z:100;
}
div.vertical-line{
border-left: 3px solid #FFFFFF;
height: 64px;
lề trái: tự động;
lề phải: tự động;
width: 1px;
phao: đúng;
}
非虚拟机。我现在修好了:
.navigation_1 {
position:top;
chiều rộng: 100%;
đáy: 0;
trái: 0;
cỡ chữ: 14px;
text-transform:uppercase;
font-weight:700;
}
Tôi là một lập trình viên xuất sắc, rất giỏi!