Giter Site home page Giter Site logo

safranyu.github.io's People

Contributors

safranyu avatar

safranyu.github.io's Issues

Github搭建Hexo博客 | Safran Blog

https://safranyu.github.io/post/9a98d601.html

Github 搭建Hexo博客利用Github page搭建一个人博客,在没有特殊需求,又想快速拥有一个个人博客,hexo是个不错的选择,搭建简单,无需另外购买服务器空间和域名,只需要有个Github账号即可。搭建简单,能够坚持维护和写文章难。。。 环境准备1.安装Node.js Hexo是基于nodeJS环境的静态博客 前往Node官网下载最新版本,一路安装即可。 查看是否安装好了,打开cdm

垂直居中的几种方法 | Safran Blog

https://safranyu.github.io/post/undefined.html

CSS垂直居中方法一:line-height 适用场景:单行文字垂直居中 方法二:line-height + display: inline-block 适用场景:多对象垂直居中 方法三:before +inline-block 适用场景:多对象CSS垂直居中 方法四:absolut + margin 适用场景:多行文字的垂直居中 方法五:absolut + margin auto 适用场景:多行

网页结构命名 | Safran Blog

https://safranyu.github.io/post/34da003d.html

按功能命名:头:header内容:content/container页脚:footer导航:nav子导航:subnav侧栏:sidebar栏目:column广告条:banner主体:main左中右:left/right/center菜单:menu子菜单:submenu注册:register登陆:login标志:logo按钮:btn图标:icon热点:hot新闻:news下载:download搜索:

关于PC端缩小浏览器窗口,右边背景空白并出现滚动条 | Safran Blog

https://safranyu.github.io/post/488e492e.html

出现原因 因为出现空白的元素设置了宽度100%,缩小窗口相当于减小了宽度值,那么为什么出现滚动条呢?是因为页面中至少有一个元素a的width大于窗口的width,导致把页面撑开,出现了滚动条,而此时那个width:100%的元素宽度等于窗口宽度且小于元素a的宽度,所以右侧的空白长度=a的宽度-窗口宽度。 解决这个问题其实很简单 给body设置最小宽度min-width,在ie6下不兼容 123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.