I define the select, textarea style for list.aspx in the my.css file, as follows:
#myinput div input, textarea, select{ position:absolute; left:100px;}
Result This css definition actually affects the select and textarea effects on my other page (add.aspx), and add.aspx does not have the ID #myinput at all. Why does it still affect its select?
Solution
#myinput div input, textarea, select
Didn’t you add a comma? Description
#myinput div input
textarea
select
These three all conform to { position:absolute; left:100px;}
If you only want the select below #myinput to be valid, like this Write:
#myinput div input,textarea,#myinput select{ position:absolute; left:100px;}
Haha, thank you, I got the wrong concept.