Skip to content

Commit

Permalink
Optimize iframe Tag
Browse files Browse the repository at this point in the history
优化 iframe 标签的布局,移除组件多余的内容输出
  • Loading branch information
Dreamer-Paul committed Nov 23, 2019
1 parent 17ec499 commit 9f40644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kico.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Kico Style 1.0
# By: Dreamer-Paul
# Last Update: 2019.11.13
# Last Update: 2019.11.23
一个可口的极简响应式前端框架。
Expand Down Expand Up @@ -155,7 +155,7 @@ kbd{
font-family: 'Consolas', 'Courier New', monospace, "微软雅黑";
}

img, svg, audio, video{
img, svg, audio, video, iframe{
max-width: 100%;
vertical-align: middle;
}
Expand Down
5 changes: 1 addition & 4 deletions kico.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Kico Style 1.0
# By: Dreamer-Paul
# Last Update: 2019.11.13
# Last Update: 2019.11.23
一个可口的极简响应式前端框架。
Expand Down Expand Up @@ -167,8 +167,6 @@ Array.prototype.remove = function (value) {
set: function () {
var img = get_images[current];

console.log("now is: " + current);

current === 0 ? image_box.prev.classList.add("ended") : image_box.prev.classList.remove("ended");
current === get_images.length - 1 ? image_box.next.classList.add("ended") : image_box.next.classList.remove("ended");

Expand Down Expand Up @@ -215,7 +213,6 @@ Array.prototype.remove = function (value) {
actions.set();
};
image_box.next.onclick = function () {
console.log(get_images.length);
if(current + 1 < get_images.length) current++;

actions.set();
Expand Down

0 comments on commit 9f40644

Please sign in to comment.