css 设置层级关系 如果不可以设定position的话求大神_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:42:52
Original
1259 people have browsed it

现有demo设计如下:



#left_nav有移动动作,可以向右移动,要求它移动后要位于#right_content上(#left_nav移动过程中#right_content可以位于当前位置不动),但是不能给#left_nav设定position,也就是说不能使用z-index设置#left_nav与#right_content的层级关系,也不能让#left_nav作为#right_content的父元素,此时,如果还想让#left_nav位于#right_content之上如何实现 ?


回复讨论(解决方案)

默认position是relative,移动过去应该就在上面吧

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!