发布日期: 2024-03-10 | 来源: 智软设计工作室
好用的独立响应式css,网站制作的时候很方便,@media响应式也也好了。在配合独立的格栅系统 ,就好用了。不用加载其他css框架梁 https://www.002t.cn/jishuwenzhang/108.html
如果要用rem布局。在加载一个js响应式设置html字体大小。 https://www.002t.cn/jishuwenzhang/109.html
/*重置标签*/
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.15;-webkit-tap-highlight-color: rgba(0,0,0,0);font-size: 100px;}
body{margin:0;font-family: "Microsoft Yahei",PingFangSC-Regular,"Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei",sans-serif;line-height: 1.42857143;font-size: 16px;min-width: 1230px;background: #fff;color: #202a52;}
h1{font-size:2em;margin:.67em 0;}
h2,h3,h4{margin: 0;}
figure{margin:1em 40px;}
hr{box-sizing:content-box;height:0;overflow:visible;}
a{-webkit-text-decoration-skip:objects;background-color:transparent;}
abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}
b,strong{font-weight:bolder;}
dfn{font-style:italic;}
mark{background-color:#ff0;color:#000;}
small{font-size:80%;}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
sub{bottom:-.25em;}
sup{top:-.5em;}
audio:not([controls]){display:none;height:0;}
img{border-style:none;max-width:100%;}
svg:not(:root){overflow:hidden;}
button,input,optgroup,select,textarea{line-height:1.42857143;margin:0;outline: none;}
body, button, input, select, textarea {text-rendering: optimizeLegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;-moz-font-feature-settings: "liga","kern";}
button,input{overflow:visible;}
button,select{text-transform:none;}
button,html [type=button],/* 1 */
[type=reset],[type=submit]{-webkit-appearance:button;}
button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0;}
button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText;}
fieldset{padding:.35em .75em .625em;}
legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}
progress{display:inline-block;vertical-align:baseline;}
textarea{overflow:auto;}
[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}
[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none;}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}
summary{display:list-item;}
article,aside,footer,header,nav,section,figcaption,figure,main,details,/* 1 */
menu{display:block;}
pre,code,kbd,samp{font-family:monospace, monospace;font-size:1em;}
audio,video,canvas{display:inline-block;}
template,[hidden]{display:none;}
.clearfix{zoom:1;}
.clearfix:before,.clearfix:after{display:table;line-height:0;content:"";}
.clearfix:after{clear:both;}
a {color: #333;text-decoration: none;}
a:hover {color: #202a52;}
ul {margin: 0;list-style: none;padding: 0;}
/*pc*/
.container {padding: 0 20px;width: 1140px;margin: 0 auto;}
/*ipad pro */
@media(max-width: 1280px) and (min-width: 1024px){
html{font-size: 80px!important;}
body{min-width: 100%;}
.container{width: 100%;}
}
/*ipad mini air*/
@media(max-width: 1023px){
html{font-size: 100px;}
body{min-width: 100%;}
.container{width: 100%;}
}
/*手机*/
@media screen and (max-width: 767px) {
body {min-width: 320px;padding-top: 50px;padding-bottom: 50px;}
.container {width: auto;}
}2023-07-10
pbootcms后台管理二次开发中如何使用{foreach}{if}{/if}{/foreach}语句,判断写入模板得数据,后台模板页面使用1.首先在相应的控制器里面获取数据assign到前端页面中例如$this->assign('NameData',$NameModel->getList());注意如果不是当前控制器对应的model,需要new一个新的model去查询数据。2.在htm
阅读更多2022-06-09
我们有的时候爬一些网站,会出现一些版权html注释在里面。手动删除起来麻烦下面直接用这个正则表达式 删除注释HTTrack Website和 webzip版权 应该都可以用。webzip目前还没测试去掉 注释 标记<!--[/!]*?[^<>]*?>下面在分享一些其他常用的正则<[/!]*?[^<>]*?>去掉HTML 
阅读更多2024-02-21
/*container*/*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.container{position:r
阅读更多2023-05-29
解决办法:程序运行异常: Modulo by zero,位置: /data/home/qxu1539590078/htdocs/core/function/helperphp,第838行pbootcms 判断字段内容是否为空,会出现以上问题,导致的原有就是内容里又特殊字符,那我们怎么解决了。可用用如下方法,截取部分来做判断:{pboot:if('{content:ext_gzcanr2 len=8}'!=''
阅读更多2023-06-05
Bootstrap导航条 点击(单击Navbar)li菜单后,自动收回折叠整个菜单,利用jq做的。点击后再次错误,菜单按钮点击事件,<script>vara=document.querySelector(".navbar-toggler"); 
阅读更多2024-07-03
.navbar .search-right .pop-overlay:target { visibility: visible; opacity: 1;} 自己可以举一反三。 <a href="#search" class="btn search-btn" title="search"><span class="fas fa-search me-2" aria-hidden="tru
阅读更多2023-06-30
如果你希望在滚动倒退后保留 wow.js 动画效果,可以尝试将 resetAnimation 设置为 false。varwow=newWOW({resetAnimation:false,})wow.init();
阅读更多