Yeah, they say you shouldn't study in bed - but I've done so with acceptable results. I studied like I normally would, though propped up on my side.
These days? In 2018 (five years ago, almost to the day - the 30th of October) I was in a wreck that left me mostly bedridden for quite a while. I ordered a new computer and set it up next to the bed with the monitor and keyboard on the nightstand. The sheets worked just fine as a mousepad. The stand is maybe 4 or 5 in (12 or so cm) below the height of the bed. So typing is pretty comfortable.
If I were to study in bed often, I'd set up something like that. The computer is still there and it still gets some use, just not nearly as much use as it got at the beginning. I'd not want to use a laptop in this situation and using a laptop directly atop a bed is a bad idea as it will not ventilate properly.