Two divs 50% each. Make middle draggable to make bigger or smaller
问题 Alright everyone, is there a way to have 2 divs taking up 50% of the screen and have a bar in the middle so you can drag it and make the left 40% and the right 60% and vice versa. I hope to be able to do this jquery. 回答1: Here's a method which I quickly wrote, this does not use jQuery though. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Example Slider</title> <style type="text/css"> #bar1 { position: absolute; background: red; height: 250px; width: 400px; z-index: 1; } #bar2 {