在需要滚动的元素内部添加一层div ,并添加样式:position:absolute; 父级样式添加 position: relative;即可 <div className="pcCommon_left_top"> <div style={{position:'absolute',width:'calc(100% - 72rem)'}}> <div className="pcCommon_left_logo"> For tradeshow organizers. </div> <div className="pcCommon_left_des"> <div className="pcCommon_left_des_bottom">Please experience our demo ...</div> </div> </div> </div>
标签:flex,缩放,高度,宽高,滚动条,添加 From: https://www.cnblogs.com/zscxy/p/18007357