html_and_css
This is an old revision of the document!
#html
#CSS
###在html中使用external stylesheet:
```<link rel=“stylesheet” type=“tex/css” href=“LSstyle.css”>```
###不同的vhost共用stylesheet的方法:在每个vhost里面建立symbolic link ```ln -s /home/wwwroot/LSstyle.css LSstyle.css```
###不同的开头:
- define an id
例如定义一个圆角id
```#fixWidthBlockRound { border-radius: 4px; }```
- deine a class
例如定义img tag的一个圆角class
```img.roundedCorner6px{ border-radius:6px; overflow:hidden; }```
两者似乎可以互相替换:https://www.w3schools.com/code/tryit.asp?filename=FYJD2ER45BQL
但是class的定义方法必须得指定tag,不如id来得通用[?]
参考资料:
* CSS dropdown menu https://catalin.red/css3-dropdown-menu/
html_and_css.1545801917.txt.gz · Last modified: (external edit)
