Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
wiki-frontend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • wiki-frontend
  • Wiki
  • php front desc

Last edited by 王秋石 Jul 08, 2016
Page history
This is an old version of this page. You can view the most recent version or browse the history.

php front desc

技术说明
  1. 如何在css中使用背景图片
.test {

    background-image: url("<?=UrlBuilder::build_static('images/example_02.jpg')?>");
    height: 100px;
    width: 200px;
    color: #ffffff;
}
  1. 如何在html中使用静态图片
<img style="border:red 1px solid;" src="<?=UrlBuilder::build_static('images/example_02.jpg')?>">
  1. 静态文件存放于static目录 请根据二级目录进行分别存放

  2. 公共css位于 每个app下的view/Frame.css下

Clone repository
  • Home
  • php front desc