pip识别全局安装包..?!:-(
我用virtualenvwrapper preactivate钩来清洁PYTHONPATH,
export PYTHONPATH=""
Run Code Online (Sandbox Code Playgroud)
然后echo $ PYTHONPATH返回空字符串,但这没有帮助.
怎么了?
bentzy@lama:~$ mkvirtualenv test
New python executable in test/bin/python
Installing setuptools............done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/get_env_details
(test)bentzy@lama:~$ which pip
/home/bentzy/.virtualenvs/test/bin/pip
(test)bentzy@lama:~$ sudo pip install simplejson
Requirement already satisfied (use --upgrade to upgrade): simplejson in /usr/lib /python2.7/dist-packages
Cleaning up...
(test)bentzy@lama:~$ echo $PYTHONPATH
(test)bentzy@lama:~$ pip --version
pip 1.2.1 from /home/bentzy/.virtualenvs/test/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg (python 2.7)
Run Code Online (Sandbox Code Playgroud) 通过将特定模式的ID设置为选择器,可以更改页面中多个模式之一的CSS。
例如:
.modal {
top: 0px;
margin-top: 240px;
...
}
Run Code Online (Sandbox Code Playgroud)
设置
#my_modal {
top: 0px;
margin-top: 240px;
...
}
Run Code Online (Sandbox Code Playgroud)
我的问题:
如何更改仅#my_modal
对应的模式背景的CSS ?
$('.modal').addClass('my_personal_stuff');
Run Code Online (Sandbox Code Playgroud)
工作,而
$('.modal-backdrop').addClass('my_personal_stuff');
Run Code Online (Sandbox Code Playgroud)
不起作用
为什么这样呢?