随笔分类 - HTML&CSS
超文本标记语言(HyperText Markup Language) & 层叠样式表(Cascading Style Sheets)
摘要:很简单,只需在<body>中添加如下代码: <body oncontextmenu='return false' ondragstart='return false' onselectstart='return false' onselect='document.selection.empty()'
阅读全文
摘要:HTML: <div class="col-md-3"> <nav class="navbar"> <div class="container-fluid"> <div class="navbar-header common-border-bottom common-border-right com
阅读全文
摘要:CSS: .column-title { color: #9b9b9b; text-shadow: 1px 1px #d4d4d4;}.column-title:hover { color: #5a5a5a; text-shadow: none;}@media all and (-webkit-mi
阅读全文
摘要:注意:background属性中的背景图片和颜色混合,只能在一个background属性中。属性值:background-blend-mode: normal; //正常 background-blend-mode: multiply; //正片叠底 background-blend-mode: s
阅读全文
摘要:/*背景渐变*/.linear{ width:100%; height:600px; background-color:#fff;/*若浏览器不支持渐变,则显示这个背景色*/ background: -ms-linear-gradient(left,#dbecf6 0%,#C0D9ED 100%);
阅读全文
摘要:无需背景图片就可以实现导航栏分割线,颜色自定,线段虚实自定。 .nav1{ width:auto; height:50px; text-align:center; margin:13px auto 0; } .nav1 a{ display: inline-block; text-decoratio
阅读全文