栅格系统需要引用bootstrap插件 <script src="~/Scripts/BootStrap/bootstrap.js"> </script> <link href="~/Content/BootStrap/bootstrap.css" rel="stylesheet" /> 栅格系统使 ...
分类:
其他好文 时间:
2020-04-16 20:58:14
阅读次数:
138
一,高度塌陷 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...
分类:
Web程序 时间:
2020-04-16 19:45:17
阅读次数:
94
Chrome上(或安卓机上的ionic App)当鼠标焦点在input、textarea这些元素上时,Chrome默认的会给它们加上黄色的边框。我用这个CSS,没有用。 textarea:focus { border:none; } 后来一查才发现,得这么写: textarea:focus { ou ...
分类:
其他好文 时间:
2020-04-16 19:39:23
阅读次数:
101
<div class="divide"></div> <div class="user-right"> 2020-01-06 11:12:40 wang</div> <div class="chat-right"> <span>wsw今天天气不错呦,一起去海边走走怎么样??</span> <div ...
分类:
Web程序 时间:
2020-04-16 19:19:43
阅读次数:
78
function loadStyle(url) { const link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = url; const head = ...
分类:
Web程序 时间:
2020-04-16 15:40:29
阅读次数:
100
1.index.php <style type="text/css"> #container{margin:10px auto;width: 660px; border: 1px solid #999;} .single_item{padding: 20px; border-bottom: 1px ...
分类:
Web程序 时间:
2020-04-16 15:11:42
阅读次数:
91
CSS中存在一个神秘的变量,少有人知自然也不怎么为人所用。它就是crrentColor变量(或者说是CSS关键字,但我觉得称为变量好理解些)。 初识 它是何物?具有怎样的功效?它从哪里来?带着这些疑问我们继续。 下面是来自MDN的解释: currentColor代表了当前元素被应用上的color颜色 ...
分类:
Web程序 时间:
2020-04-16 13:20:41
阅读次数:
79
众所周知,less是一门css预处理语言,其他的类似还有scss、Stylus 等,和js相似度比较高的就是less了。话不多说,我们来看less的使用。 Node.js 环境中使用 Less : npm install -g less > lessc styles.less styles.css ...
分类:
其他好文 时间:
2020-04-16 11:48:18
阅读次数:
88
LeetCode上的卖股票题大概有6道,建议大家去看一下英文版 LeetCode上关于这类题目的讲解:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/discuss/108870/M ...
分类:
编程语言 时间:
2020-04-16 00:47:04
阅读次数:
88
1.定义和用法 window.onload() 方法用于在网页加载完毕后立刻执行的操作,即当 HTML 文档加载完毕后,立刻执行某个方法。 window.onload() 通常用于 <body> 元素,在页面完全载入后(包括图片、css文件等等)执行脚本代码。 只有一个要执行的函数语法: windo ...
分类:
Web程序 时间:
2020-04-16 00:37:36
阅读次数:
93